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.

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…

Deque in Java

Java ArrayDeque hierarchy diagram

A double ended queue or deque in Java is a linear data structure that supports insertion and removal of elements from both ends (head and tail). It is usually pronounced “deck”, not “de queue”. Java deque is an extended version…