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

How does remove work in java?

526


List types of storage classes in java?

621


What is the purpose of abstract class?

524


What are scriptlets?

599


Explain about main thread in java?

615






Explain reverse a linked list recursive java solution?

534


Can we have a method name same as class name in java?

583


What is the map interface in java programming?

588


Can we override data members in java?

632


How is it possible for two string objects with identical values not to be equal under the == operator?

530


What is the difference between size and length in java?

516


Wha is the output from system.out.println(“hello”+null); ?

697


Can we have more than one package statement in the source file?

645


How do you sort arrays in java?

528


What is java in layman terms?

531