• Post Reply Bookmark Topic Watch Topic
  • New Topic

GC is platform dependent?  RSS feed

 
Suren Babu
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read in marcus green's Mock exam and one of the question is...
Which of the following statements are true?
1) The automatic garbage collection of the JVM prevents programs from ever running out of memory
2) A program can suggest that garbage collection be performed but not force it
3) Garbage collection is platform independent
4) An object becomes eligible for garbage collection when all references denoting it are set to null.
Answer to this question says GC is platform dependent. I know GC is vendor dependent as each and every vendor can have their own GC Algo. But i am confused how it can be plaform dependent...
For eg. Sun has got JVM for Windows, solaris, linux. Is it these platforms has got its own GC?
pls explain
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GC is JVM dependent and JVM is not only vendor dependent, but each implementation is also platform dependent. That makes GC platform dependent.
Ajith
 
Suren Babu
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ajith
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!