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 type of language is java?
Why can't you declare a class as protected?
What are the features in java?
What is int short for?
What access modifiers can be used for variables?
What are the types of exceptions?
List some java keywords sun like c, c + + keywords?
Compare Mutex and Semaphore in java.
What is an empirical question?
How big is a 64 bit float?
What is the use of keywords in java?
How many ways can we create singleton class?
Can sleep() method causes another thread to sleep?
Is set sorted in java?
What is a java applet? What is an interface?