Tag Archives: Java Interview

Java : What does finalize do and How?

Finalize method in Object class is often a point of discussion whether to be used or not ? Below are some of the pointers on Finalize method

String Interning – What ,Why and When ?

What is String Interning  String Interning is a method of storing only one copy of each distinct String Value, which must be immutable.

In Java String class has a public method intern() that returns a canonical representation for the string object. Java's String class privately maintains a pool of strings, where String literals are automatically interned.

When the Continue Reading ››