Hi All,
Select three correct statements
A. The garbage collection
thread will die just after the last user thread dies.
B. The garbage collection can be forced by invoking System.gc().
C. The garbage collection thread is a non-deamon thread.
D. The finalize() method is invoked at most once by the JVM for any given object.
E. The finalize() method may resurrect the object upon which it has been invoked.
Correct answers are A,D,E
I have doubt in D. According to me finalize() method may run or not on a particular object based upon it the above option "D" is wrong. Correct me if i am wrong
Source:
Source Thanks All