Can anybody predict the output of this program??
I have compiled executed it and found the following output.
Hey, I'm in TestFinalize finalize()
Hey, I'm in TestFinalize finalize()
Just returned from garbage collection
Ans explanation says it won't be same if you run it again.
That seems to be right also. Because we can't predict when the object will be GCed.
Any comments??
I will list the other choices
A: Hey, I'm in TestFinalize finalize()
Just returned from garbage collection
B: Hey, I'm in TestFinalize finalize()
Hey, I'm in TestFinalize finalize()
Just returned from garbage collection
C: Hey, I'm in TestFinalize finalize()
Just returned from garbage collection
Hey, I'm in TestFinalize finalize()