CyclicBarrier in Java

A CyclicBarrier in Java is a synchronization aid which allows a set of threads to wait for each other until all threads reach a common point.

June 20, 2022

CountDownLatch in Java

A CountDownLatch in Java is a synchronization aid which allows one or more threads to wait until something else happens (or gets completed).

May 30, 2022

Arrays Utility Class in Java

The Arrays Utility class in Java has various methods for working with arrays. In this post, we will learn about the Arrays class in Java.

May 16, 2022

PrimitiveIterator in Java

A PrimitiveIterator in Java is an interface for the primitive specializations of an Iterator. In this post, we will learn about the PrimitiveIterator, its subclasses and its uses.

December 22, 2021

New Methods in the String Class – Java 11 and 12

A few useful methods have been added to the String class in Java 11 and 12. Let us learn about the new methods in the String class in Java.

October 11, 2021

Static Utility Methods in Objects

The Objects class has many useful static utility methods. In this post we will learn about the static utility methods in the Objects class.

July 4, 2021

OptionalInt, OptionalLong and OptionalDouble in Java

The OptionalInt, OptionalLong and OptionalDouble in Java are container objects which may contain a int, long and double value respectively.

May 10, 2021

StringTokenizer in Java

The StringTokenizer helps to break a string into tokens with a specified delimiter. In this post, we will learn about StringTokenizer in Java.

April 19, 2021

Enummap in Java

An EnumMap in Java is a specialized map implementation for use with enum type as the keys. In this post, we will learn EnumMaps in Java.

December 29, 2020

Priority Queue in Java

A Priority Queue is an unbounded queue based on a priority heap. The elements are ordered according to their natural ordering or by a Comparator provided.

July 6, 2020