Interview Question - Java

Set 1:
  1. Why there are static blocks ? What if don't have? How to achieve the same if no static blocks. 
  2. Difference between Inner classes and Inheritance? 
  3. Why do we have Immutable classes? 
  4. Are String literals immutable? 
  5. Explain various memory locations and what they will store? 
  6. Where does primitive values are stored?
  7. Explain flow of GC.
  8. When is an Object get removed from GC?
  9. What does PermGen contains?
  10. What if you don't override either of equals and hashcode in any class ?
  11. Why notify and wait method are defined in Object instead of Thread?
Set 2:
  1. What is new in java 8 ? 
  2. What is the benefit of lambda expression?
  3. How will you debug lambda expression?
  4. Difference between synchronized and concurrent hash map.
  5. How hash map works ? When to override hashcode() and equals() method and when not to.
  6. What data structure will be used to store words and the corresponding page numbers where the words have occurred in a huge book . (Like index that is present at the end of the book).
  7. If you have a huge db volume, what are the issues that will be faced and how to overcome it?(Like write proper select queries, choose join wisely , apply indexes properly)
  8. How do we use SVN in the project? (Software’s lifecycle)
  9. How does caching work in Mithra ? 
  10. Why is garbage collection necessary. What situations have you encountered in you project w.r.t to the GC.
  11. What is the most difficult technical challenge faced in the previous project.
  12. Autosys – what are the other scheduler that you know of? And challenges faced while using autosys.
  13. Which framework is your favorite and why?
  14. How does Mithra work  ? 
  15. Favorite subject in B.Tech.
  16. Final Year project (Though that was not mentioned in the resume!!)


1 comment:

Unknown said...

What is the difference between String literal and new String object
http://java67.blogspot.com/2014/08/difference-between-string-literal-and-new-String-object-Java.html

Post a Comment