Author Topic:   True/False
sree
ranch hand
posted May 16, 2000 06:59 AM             
A copy of the original event is passed into a listener method. true/false.i think it's false. Can anybody confirm this for me.


2)You can run the g.c when ever you want to.
True/False.

Thanks.

[This message has been edited by sree (edited May 16, 2000).]

Ajay Kumar
ranch hand
posted May 16, 2000 07:28 AM             
Sree,
quote:
A copy of the original event is passed into a listener method. true/false.i think it's false. Can anybody confirm this for me.

Even I think it is false.
Check this out from an old discussion.

I think it pays to go thru old discussions in Javaranch.

quote:
2)You can run the g.c when ever you want to.
True/False.

It is false.
Your can suggest the gc to run but cannot force it.

regds
Ajay K


[This message has been edited by Ajay Kumar (edited May 16, 2000).]

Suma Narayan
ranch hand
posted May 16, 2000 08:23 AM         
Hi sree,

A copy of the original event is passed into a listener method. true/false.i think it's false. Can anybody confirm this for me.

Yes, it is false. Please refer to the same question and the explanation in this forum.

2)You can run the g.c when ever you want to.
True/False.

Once again it is one of those ambiguous questions.

The answer is false. It would have been true if the question was " you can invoke the g.c. whenever u want".

suma.

maha anna
bartender
posted May 16, 2000 10:25 AM             
Sree,
The first qstn is false. A copy of the ref is passed not the copy of the Event object for every listener method.

for the 2nd, to be frank, in GC we all know that it is a dependent case. ALso we all know that you can suggest the JVM to run gc (by System.gc()/Runtime.getRuntime.gc() ). More than that I can't give anything for sure.

I got a qstn on GC, and I made my best guess to get the answer correct. In gc I got 100%. So I can be sure of that. But I can't reveal any qstn as such. I think the real Exam is comparatively ok in GC section. Even then whenever I saw the gc qstn in the exam, all the flash back of all our discussion came to my mind which took me some more time to answer that qstn.

regds
maha anna.

|