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
why would you use a synchronized block vs. Synchronized method? : Java thread
Why is java called the platform independent programming language?
What is string made of?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What is callablestatement? How you can call stored procedure to pass in parameter?
How to make a non daemon thread as daemon?
How do you write a conditional statement?
What are the application of stack?
How many threads can java run?
Which class contains a method: cloneable or object?
What are the string methods in java?
Describe the term diamond problem.
what are the methods in object?
In java, how many ways you can take input from the console?
How to connect to a remote database using Applet?