Why we can not force Garbage Collection?

Answer Posted / rohit

when jvm find that the object of that class is not used for
long time ,if that situation occurs then jmv jmv
automatically calls that garbage collector

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is subsequence of a string?

594


Give the difference between the println method and sqrt method?

618


what is the difference between process and thread? : Java thread

555


What is the purpose of main function in java?

528


Why pointers are not used in java?

570






what is thread? : Java thread

547


What is the default value of the local variables?

499


What is e in java?

535


What is a boolean expression in java?

524


How a string is stored in memory?

569


What is a parameter in a function?

522


What data type is string java?

528


State the difference between strings and arrays.

591


What is meant by string is immutable?

511


Is int a class in java?

519