JMS (Java Message Service)

List of popular JMS questions.

1. P2P (Point to Point) vs PubSub (Publisher Subscriber)
2. How JMS is configured.
3. How to make message delivery more reliable.
4. Transacted Session.
5. Durable Subscription.
6. Message Selector, JMS Message ID, JMS Correction ID etc.
7. Persistence in JMS.
8. JMS version used in your project.

Java Coffee Cup Menu

Data Structure Questions

List of popular Data Structure questions.

Linked List:

  1. Explain doubly linked list.
  2. Write your own implementation of Doubly Linked List.
  3. Find the middle element of a linked list in a single iteration.
  4. Make a copy of a Linked List having random pointers.
  5. Reverse a given Linked List.

Queue and Stack:

  1. Explain Queue, Double ended queue and priority queue
  2. Explain Stack
  3. Make a Queue using two Stacks.

Tree:

  1. Find the traversal path in a Tree (not binary) if you have node value.
  2. Explain Binary Tree.

Sorting:

  1. Name different sorting algorithms you heard.
  2. Explain one or more of these-
    • Bubble Sort
    • Merge Sort
    • Quick Sort
  3. Which sorting algorithm is more efficient and why?
  4. Which sorting algorithm Java Collections API uses?

JDBC Questions

Here is the list of popular JDBC questions.
  1. Prepared statement vs Statement
  2. How prepared statment prevents SQL injection.
  3. Steps to execute a query

Hibernate Questions

List of popular Hibernate questions.
  1. What is ORM?
  2. Explain Object States in Hibernate.
  3. Explain the types of caches.
  4. How does First level and second level caches work?
  5. Explain data mappings. Be prepared to write some of the mappings on paper (One to Many, Many to One, One to One, Many to Many mapping).
  6. What is lazy fetching?
  7. get and load method difference.
  8. merge and update method difference.
  9. Explain named query
  10. Explain criteria queries
  11. Explain Projection
  12. How to create Session Factory in Hibernate?
  13. Which is thread safe? Session of SessionFactory?
  14. How to configure Second-Level Cache?
  15. What is N+1 problem in Hibernate and how to overcome with it?
  16. Sorted vs Ordered collections.

Spring Basic Questions



    Some of the basic questions which are generally asked during technical interview.
  • What are different modules in Spring.
  • What is IoC (Inversion of Control) in general.
  • IoC vs Dependency Injection.
  • What is MVC in Spring and role of DispatcherServlet in MVC.
  • AOP (Aspect Oriented Programming)
  • Join Point and Point Cut.
  • What are the Bean Scopes in Spring.
  • Singleton socpe vs Prototype scope.
  • Request scope vs Session scope vs GlobalSession scope.
  • Autowired and different type of Autowiring.
  • Basic bean injection
  • Cyclic Dependency and how to resolve it.

Advanced Java Interview Questions

Popular questions being asked these days on JSPs and Servlet.


  1. Servlet Chaining
  2. JSP implicit objects
  3. Session tracking mechanisms
  4. How to create cookies?
  5. Response.sendRedirect() vs RequestDispatcher
  6. EAR vs WAR vs JAR
  7. Servlet life cycle
  8. JSP life cycle
  9. Is session thread safe?
  10. How do servlet container manages client requests?