What is garbage collection in Java, and how can it be used ?
Answer Posted / jaffer
Actually garbage collector is a daemon thread. Normally
JVM’s heap stores all objects which is created by new
operator. So objects are occupying memory in heap. Some
objects are not used for long time. So garbage collector do
that work automatically.
Otherwise we call finalization method
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
Does java trim remove newline?
Why java applets are more useful for intranets as compared to internet?
How do you make an arraylist empty in java?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What classes of exceptions may be caught by a catch clause in java programming?
Can a constructor be protected?
What is the maximum size of arraylist in java?
Why do we need wrapper class?
What does %d do in java?
Can list contain null in java?
What do you mean by append?
Give me an example of array and linked list? Where they can be used?
What is the difference between multitasking and multithreading in Java
When is the finalize() called?