Nitish Bangera wrote:Before that java5, garbage collection could be done manually i suppose but it wasn't automatic.
Garbage collection has always been automatic in Java, it has never been the case that you had to call the garbage collector explicitly to do garbage collection, not even in Java 1.0.
It's interesting to know how
garbage collection (note the link) works, but you do not need to know such internal implementation details of the JVM for the
SCJP exam.