Technical Interview Preparation

Get hired by top tech companies with our comprehensive interview preparation.

Get Started

Category: Java

Java

Immutable Set in Java

This post will discuss various methods to create an immutable set in Java. Immutable Sets have many advantages over their mutable siblings, like they are thread-safe, more memory-efficient, and can be passed to untrusted libraries without any side effects.

Java

Compare two strings in Java

This post will explore several ways to compare two strings in Java using equals() and compareTo() methods of String class, equals() method of the Objects class, and StringUtils class of Apache Commons library.

Do NOT follow this link or you will be banned from the site!