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
List types of storage classes in java?
What is package protected in java?
How to convert string to char and vice versa?
Is java hard to learn?
What are the main uses of the super keyword?
Explain about wait() method?
What is string manipulation?
What is the difference between length and size in java?
What is meant by class and object in java?
What are memory tables?
What are wrapper classes in java?
What are the topics in advance java?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What is the statements?
what is the purpose of the runtime class?