posted 20 years ago
Points in your question:
I think question is formatted in wrong way. Becaues, rg is not object. It is a variable of type Object. So, i do not agree variable is garbage collected. If you make reference of variable rg to null, then object created at line no. 3 will be eligible for garbage collection.
MUSTin point.B :- means, if you include static, then program may fail to compile or runtime exception, or similar type of problem and if you remove static, then this probelm should be eleminated. So B is not correct either.
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."