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
Can private class be inherited in java?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
How many bytes is a char in java?
Explain the meaning of java applet.
What is difference between array and arraylist in java?
how to deploy apache tomcat server to weblogic server in java
What are the advantages of defining packages in java?
What are three advantages of using functions?
What is a method signature java?
What is int argc char * argv?
What is this keyword used for?
What is thread count in java?
Define reflection.
What is queue in java?
How do you stop a thread in java?