Sunday 8 November 2015

15 Advanced Core Java Interview Questions for Experienced Developers

In this article, I am going to share some advanced core Java interview questions for experienced programmers i.e. someone who has 2 to 5 years of experience in Java programming, mostly in core Java but JEE work is also fine. I have found that once you become senior and your experience grows, you no longer see questions like String vs StringBuilder or Vector vs ArrayList, instead many companies ask about class loaders, Garbage collectors, concurrency and about JVM. I have started collection some core Java questions for my preparation and today I am going to share some with you, I don't have their answer, So, I am looking forward to you guys to answer them, of course only if you know.


Advanced Core Java Interview Questions for Senior developers

  1. What are classloaders and different types of class loaders in java?
  2. What is BootStrap class loader and how does it works?
  3. What is Extensions class loader and how does it works?
  4. What is application class loader and how does it works?
  5. When an object becomes eligible for garbage collection?
  6. Who performs garbage collection?
  7. When does garbage collector run?
  8. Which algorithm garbage collector uses to perform garbage collection?
  9. List out different garbage collection algorithms?
  10. Can we force JVM for garbage collection?
  11. How to request jvm to perform garbage collection operation?
  12. Explain the purpose of finalize method in relation to Garbage collection?
  13. How many times finalize method is called on an Object?
  14. Once an object is garbage collected can it become reachable again?
  15. How to write a code that makes an object eligible for garbage collection?

Thank You.

No comments:

Post a Comment