- When It is Called : Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the
finalizemethod … Continue Reading ››
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
What is String Interning String Interning is a method of storing only one copy of each distinct String Value, which must be immutable.
String class has a
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.
Continue Reading ››