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
Can a static class implement an interface?
What are the main differences between the java platform and other platforms?
Can we create a constructor in abstract class?
Which language is java?
Explain the difference between treeset and treemap in java?
Does java support multiple inheritances?
How does thread synchronization occurs inside a monitor?
What is off heap memory?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
Difference between class#getinstance() and new operator ?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What are three advantages of using functions?
What are the types of web technologies?
What is the difference between iterator and enumeration ?
How do you declare an empty string?