• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

True/False

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


Even I think it is false.
Check this out from an old discussion.
http://www.javaranch.com/ubb/Forum24/HTML/000048.html
I think it pays to go thru old discussions in Javaranch.

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).]
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
http://www.javaranch.com/ubb/Forum24/HTML/001063.html
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.
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic