how exactly garbage collection take place?

Answer Posted / vinay

Another way to call garbage collector :-
Runtime rt = Runtime.getRuntime();
rt.gc();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference overloading and overriding?

575


How many bits is a char?

533


What data type is a string?

509


How is java hashmap implemented?

540


Is null a keyword in java?

551






Can we write multiple catch blocks under single try block?

566


Is string thread safe in java?

571


How to check if a list is sorted in java?

582


What is static method with example?

608


What is the byte order of byte buffer?

557


Which collection is best for sorting in java?

685


Explain about complier design(phases)

620


Can java program run without jre?

563


Why is a string immutable?

535


Is set ordered in java?

565