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