What is garbage collection in Java, and how can it be used ?
Answer Posted / rana.ankur
Garbage collection is a method of jvm.In JAVA when object
iis not use in otherway there is no refrence to that object
it is ellegible for Garbage collection.
demon thread is used and its is known as Garbage
collectior..
and finalize method are also invoke to give last chance to
object to save it imprtant data..thanking you
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is an eror in java?
What is the difference between Java and C++?
What is use of arraylist in java?
What is the difference between I ++ and ++ I in java?
Why convert an applet to an application?
What is the difference between multitasking and multithreading in Java
What is string pool?
Why declare Main() inside the class in java ?
What is the use of volatile in java?
Define jit compiler?
Differentiate between stringbuffer and string?
Explain the difference between treeset and treemap in java?
What is better - 'bit-shift a value' or 'multiply by 2'?
What causes memory leaks in java?
Which list does not allow duplicates in java?