Java Calendar Class

Calendar class in Java is an abstract super class that is designed to support different kinds of calendar systems. It is used to know system data and time information. Java Calendar class provides some specific functionality that is common to…

Read MoreJava Calendar Class

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…

Read MoreComparator in Java

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…

Read MoreArrayDeque in Java

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…

Read MoreDeque in Java