Category Java

Scientech Easy welcomes you in the Java tutorial category. We have designed this tutorial series for beginners, students, and professional developers who want to learn Java programming from basic to advanced levels. Here, you will find easy-to-understand Java tutorials, practical example programs, interview questions, and quizzes.

So, let’s start to understand Java concepts one by one with these tutorials.

StringTokenizer in Java

How StringTokenizer works in Java

StringTokenizer in Java is a utility class that breaks a string into pieces or multiple strings called “tokens”. For example, strings separated by space and tab characters are tokens. These tokens are separated with the help of a delimiter. A…

Comparator in Java

Comparator interface in Java

Comparator in Java is an interface whose task is to compare objects of a user-defined class when the class does not implement the Comparable interface. In other words, Java Comparator is used when: Objects to be ordered do not have…

Comparable Interface in Java

Comparable interface in Java

Comparable interface in Java defines compareTo() method for comparing objects of the same type. In other words, comparable interface defines a standard way in which two objects of the same class will be compared. It is mainly used to provide…

Stack in Java: Methods, Example

Realtime example of stack in java

A Stack in Java is a collection (or group) of elements stored in the last in first out (LIFO) order. In other words, a stack is a data structure that stores data in last-in, first-out fashion. This means an element…

ArrayDeque in Java

Java ArrayDeque hierarchy diagram

ArrayDeque in Java is a concrete class that creates a dynamic array (resizable array) to store its elements from both sides of the queue. It provides a resizable-array implementation of deque interface. Therefore, it is also known as array double-ended…