What is garbage collection in Java, and how can it be used ?

Answer Posted / sachin deshmukh

In java doesn't allow memory leakage,Garbage collector
automatically deallocates memory.It deallocates memory of
objects that no longer has any references i.e. references
count is zero.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a string what operation can be performed out with the help of a string?

513


What do you mean by buffering?

558


What is meant by class?

543


What is the maximum size of arraylist in java?

498


Is simpledateformat safe to use in the multithreaded program?

541






What are the differences between this and super keyword?

533


What is the use of jtable?

652


What is use of inner class in java?

516


What are the java ide's? Explain

525


Is object a data type?

562


Whats the difference between notify() and notifyall()?

572


What is difference between path and classpath variables?

566


Explain about procedural programming language or structured programming language and its features?

549


Can an interface extend a class?

540


What are different types of constants?

520