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

Answer Posted / dhawal

garbage collection is process run thruogh out the java
programe ,when we class creation takes place after that we
have to instantiate that class ,if we can not gives refrence
to this object then that will be find out by garbage
collector and that will collect by garbage collector.

Is This Answer Correct ?    11 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a static class implement an interface?

683


What are the main differences between the java platform and other platforms?

611


Can we create a constructor in abstract class?

659


Which language is java?

635


Explain the difference between treeset and treemap in java?

627






Does java support multiple inheritances?

674


How does thread synchronization occurs inside a monitor?

646


What is off heap memory?

632


Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

719


Difference between class#getinstance() and new operator ?

754


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

669


What are three advantages of using functions?

642


What are the types of web technologies?

649


What is the difference between iterator and enumeration ?

600


How do you declare an empty string?

721