Where does equals() and hash code() two method comes in picture during get operation?

Java Tips

When we create string with new() Operator, it’s created in heap and not added into string pool while String created using literal are created in String pool itself which exists in PermGen area of…

Java Tips : What is immutable object? Can you write immutable object?

Java Tips

Immutable classes are Java classes whose objects cannot be modified once created. Any modification in Immutable objects result in new object. For example is String is immutable in Java. Mostly Immutable are also final in…