String Utilities in Google Guava

Google Guava belongs to the Guava project of Google. The String Utilities in Google Guava library offers several helper methods for working with Strings.

August 14, 2019

EnumSet in Java

An EnumSet in Java is a specialized Set implementation meant to be used with enum types. All the elements in an EnumSet are enum instances.

August 6, 2019

TreeMap in Java with Examples

A TreeMap is a Red-Black Tree based implementation of a NavigableMap. In this post, we will look at TreeMap in Java and the methods offered by them.

July 31, 2019

How Hashmap Works in Java

A Map data structure is an object that maps keys to values. We will see how a HashMap works in java. We will also see how get and put operations work.

July 22, 2019

Iterator Design Pattern

The Iterator Design Pattern provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.

July 15, 2019

Benefits of Immutable Class in Java

An immutable class is a class whose instances cannot be modified after it is created. In this post, we will look at the benefits of immutable class in Java.

June 29, 2019

How to Make a Class Immutable in Java

An immutable class is one that does not change its state after its construction. In this post, we will learn how to make a class immutable.

June 25, 2019

Read CSV files using Apache Commons CSV

The Apache Commons CSV can be used for reading and writing Comma Separated Value (CSV) files. It is part of the Apache Commons project.

June 17, 2019

Checked and Unchecked Exception

Checked exceptions are checked at compile time whereas unchecked exceptions are not. Unchecked exceptions generally denote programming errors.

June 9, 2019

Java Method References

A method reference is a reference to an existing method. When a lambda expression just calls an existing method, we can use a Method Reference.

May 29, 2019