Answer Posted / niraj talukdar
Garbage Collection is an automated process in Java unlike C
and C++. It executes to wipe out those objects which no
longer are used in a program or stay idle for a very long
time. This to free memory space alloted to these
objects.However, it is not guaranteed that all the idle
objects wil be destroyed every time garbage collection
process gets executed.A user can also manually call the
garbage collection to take place by executing System.gc()
method.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is difference between static and abstract class?
How do you use compareto?
What happens if we don’t override run method ?
Is math an abstract class in java?
Define jre i.e. Java runtime environment?
What is binary tree in java?
Can we serialize static variables in java?
What is variable and its types?
What is a char in java?
What is yield () in java?
What is difference between float and double?
What is the basic concept of java?
What is the difference between Java1.4 and Java1.5
What is parsing in java?
Can a constructor be private and how are this() and super() method used with constructor?