how exactly garbage collection take place?

Answer Posted / vijayakumar chinnasamy

Variable/object
1. is eligible for garbage collection when no object refers
to it.
2. Is eligible when its reference is set to null i.e
objName=null.
3. referred by method variables or local variables are
eligible for garbage collection when they go out of scope.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is callable java?

639


What is the independent variable in an experiment?

639


Why constructor has no return type?

744


What is meant by data hiding in java?

723


Explain the inheritance?

666






How many bits is a string?

624


How do you sort arrays in java?

609


What is array in java?

630


Differentiate between overriding and overloading cases?

679


What are the topics in advance java?

611


What is the purpose of the system class in java programming?

637


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1755


What is the type of lambda expression?

620


What is identifier with example?

681


What is update method called?

759