A) Incorrect : You can never predict when GC will run. Even finalize() method can never be invoked.
B) Incorrect : Stupid. No sense !
C) Incorrect : Even objects with a valid reference can be Garbage Collected. Try this code :
D) Correct. You deal with instances created within inner classes in the same way you deal in outer classes.
E) Correct. You can call finalize() in the same way any other method of your class. So, you can create any objects and then make them eligible for GC by setting null. [ May 31, 2006: Message edited by: Edisandro Bessa ]
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself