Online Programming Tutorials | Web Tutorials | PHP Tutorials

The Tutorialsnation is a popular website that provides well-written tutorials for web and desktop programming languages. Our tutorials are interactive and self-explaining, and they teach by examples and sample codes. The Tutorialsnation is an excellent place to transfer knowledge and become a good learning process for the budding students of information technologies who want to learn the languages like HTML, Bootstrap, Javascript, PHP, Python, etc.

Tutorialsnation provides tutorials on various web technologies like HTML, Bootstrap, Javascript, PHP, Python, etc. Our tutorials are in many forms and range from simple definitions to explain how to make a complete source code of a programming task. Our teachers who have years of experience in programming, development, and teaching have fundamental motives to spread the knowledge and make students great future developers who can create innovative software and products to make the world a better place to live.

Java Queue and Priority Queue

Java Collection framework provides several interfaces – List, Set, Queue, Dequeue and classes – ArrayList, LinkedList, PriorityQueue, HashSet, SortedSet and TreeSet. Each of these is fundamentally a collection and therefore grouped under the common parent interface collection, although each has separate characteristics and therefore requires different implementation. Among these, Queue and PriorityQueue are discussed in the article. Read More

Java StringTokenizer class

StringTokenizer is a legacy class of java. util package. It is used to parse or separate out different parts of a string based on a delimiter. These parts are tokens, and this process is known as tokenization. For example, if we tokenize the program statement int salary = basic + da; using space as the delimiter file, tokens int, salary, basic, +, da; will be generated. Read More

Java creating immutable class

A class is immutable if we cannot change the value of its objects once they are created. In Java, String is an immutable class. Its value cannot be changed once it is created. All wrapper classes, like Integer, Float, Long, Double, Boolean, Byte etc., are immutable. Read More

Java switch Statement

A switch statement is a compact form of multiple if statements within a construct. It increases the readability of the program code. It evaluates an expression like an if statement, but unlike an if statement, it takes one of many paths depending on the value derived from the expression. Read More

Java if-else

The if and else statements are used in Java to control the flow of the program script. With these statements, we give our program the ability to decide what to do in a given situation. Read More

Java Control Flow

A program can be viewed as a set of instructions. These instructions are executed sequentially by the Java interpreter. The execution starts from the first statement of the script and continues till it reaches the end. Read More

Java String

The Java string is a sequence of characters usually written within double quotes. For example, "Java" is a string of length 4. String handling and string manipulation are very important needs of any application program working with data, and therefore proper language support is essential for elegant programming and increased productivity. Read More

Java Inheritance

Inheritance is the methodology by which a class inherits the properties and functionalities of another class. So, if class A is inherited from class B, then class A automatically receives the capabilities of class B. This is also an example of code reuse - class B code is reused in class A. Read More

Java Polymorphism

We have discussed the concept of abstraction and its implementation through encapsulation. And then further reuse of the encapsulated data and code by inheritance. Polymorphism brings further elegance to the code, making the code more readable and maintainable. Read More

Java toString() Method

The Java toString() method represents Java objects as human-readable text. This function is not parameterized but requires an argument to operate. It takes an object regardless of its datatype, converts it into a string and returns the result in its place. When used on a null reference, this method returns a null value. Read More

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies Find out more here