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
I want to print “hello” even before main is executed. How will you acheive that?
What is ordered map in java?
What do you understand by the term string pool?
What is purpose of applet programming?
Write a code to create a trigger to call a stored procedure
How do you create a sop?
How can we make sure main() is the last thread to finish in java program?
How do you execute a thread in java?
Can arraylist hold different types java?
What is anagram word?
Can you run java program without main method?
What are different types of classloaders?
What is java life cycle?
What are multiple inheritances?
Why heap memory is called heap?