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

Can you change array size in java?

623


Can we sort array in java?

618


What if constructor is protected in java?

651


What is difference between pointer and reference?

590


What is an abstract class and what is it’s purpose?

621






What are the loops in java?

614


What type of value does sizeof return?

634


What is a conditional statement explain with example?

630


What is difference between word and integer?

711


Can you pass functions in java?

676


What is the return type of the main method?

677


What is multi-catch block in java?

702


How long will it take to learn java?

610


Can an interface have a constructor?

616


Can we sort list in java?

695