Originally posted by Deepak Jain:
So my question is since t1.finalize() invokes finalize() , How come JVM again invokes finalize()?
Originally posted by Karen Marie:
Starting to get clearer. So is there ever a case where you could see
<E extends Anything>
as part of the return type?
Originally posted by zartab ameen:
Yes you guessed it correct the question is how many reference variable are eligible for garbage collection.
I guessed it was 3 but the correct option is 0.
From K&B book page 204 when you are passing reference variable you are actually passing the bit pattern that means when you do some thing in a method the value will be also reflected outside the method,similarly when you assing null the other reference also becomes null.