Garbage Collector Interview Questions

1. What is the functionality of Garbage collector?
2. How many ways are there to make eligible our objects to Garbage collector?
3. How to call Garbage collector explicitly?
4. What is the purpose of gc( ) method?
5. What is the purpose of finalize() method?
6. If the exception raised in finalize block what happenederror or output?
7. What is the purpose of RunTime class?
8. How to create object of RunTime class?
9. What is singleton class?
10. What is the algorithm fallowed by GC?
11. What is the difference between final , finally , finalize()?
12. When GarbageCollector calls finalize()?
13. Finalize method present in which class?
14. Which part of the memory involved in garbage collector Heap or Stack?
15. Who creates stack memory and who destroy that memory?
16. What do you mean by demon thread? Is Garbage collector is DemonThread?
17. How many times Garbage collector does call finalize() method for object?
18. What are the different ways to call Garbage collector ?
19. How to enable/disable call of finalize()?
20. Is it possible to call finalize() method explicitly by the programmer?

Comments

Popular posts from this blog

Exception Handling

Wrapper Class

Collections Framework Interview Questions for Fresher and Experienced