How to send a request to garbage collector?

Answer Posted / chinna

It's Runtime.getRuntime().gc()

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the importance of import keyword in java?

516


How to sort elements in a parallel array in java?

499


What methodology can be utilized to link to a database?

499


What is structure of java heap? What is perm gen space in heap?

536


Can we overload the main() method?

543






Do I need to import java.lang package any time? Why?

733


What is the argument in java?

487


What are the different types of constructor?

516


Why is static used?

539


Which sorting algorithm is best in java?

526


What is the difference between C++ and Java and your preferences?

599


What is a function in java?

561


What are the four corner stones of oop?

538


Can you call a method on a null object?

557


Define linked list and its features with signature?

534