- garbage collection can’t call forcibly. why?
- how class file loaded in jvm.
- what is the disadvantages of garbage collection.
- what is system.gc() and run.gc() mathod.
- why finalize() mathod have protected keyword. whenever it is called automatically in a class which have main method.
8,313 Views | 



(60 votes, avg: 3.02)

Loading ...
Though finalize() method is automatically called , a chance is given to the user to free the memory. So, if finalize() is not protected,anyone can override it and some sensitive data may be altered
Leave an Answer/Comment