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
Is string serializable in java?
how to create daemon thread in java?
What steps are taken when the OS shifts from one-thread execution to another?
worst case complexities of Quick sort and Merge sort.
Can a method inside a interface be declared as final?
What is garbage collection? Can it be forced to run?
Explain enumeration in java?
How do you sort an array in java?
What are different types of encoding?
What are static initalizers in java ?
Describe string intern() methodology
Differentiate between a class and an object.
What is the difference between an array and an array list?
What do you mean by stream pipelining in java 8?
Why set do not allow duplicates in java?