• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Garbage Collection

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which statement about the garbage collection mechanism are true?
A.Garbage collection require additional programe code in cases where m
ultiple threads are running.
B.The programmer can indicate that a referance through a local variabl
e is no longer of interest.
C.The programmer has a mechanism that explicity and immediately frees
the memory used by Java objects.
D.The garbage collection mechanism can free the memory used by Java Ob
ject at explection time.
E.The garbage collection system never reclaims memory from objects whi
le are still accessible to running user thread.

I think the answer should be option(b),(e),(d).But the given answer's are (A),(b),(e),(d).
Look at the given code and put the right option's out there.
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Very vague question.
As is, only answers (b) and (e) are correct.
Answer (d) - what is "explection time?"
Answer (e) - one could argue it is wrong. Garbage collection has no connection what so ever with the "type" of thread that holds references to the object ie., User or Daemon.
Where is this question coming from ??
 
reply
    Bookmark Topic Watch Topic
  • New Topic