Top 50 Java Design-Pattern Interview Questions

Top 50 Java Design-Pattern Interview Questions

This book contains Design Pattern interview questions that an interviewer asks. The focus is on design patterns that are used in Java programming. It is an advanced topic for Java technical interview.

This book is a compilation of design pattern interview questions after attending dozens of technical interviews in top-notch companies like- Facebook, Google, Oracle, Ebay, Amazon etc.

Each question is accompanied with an answer so that you can save your time while preparing for an interview.

The difficulty rating on these Questions varies from a Junior level programmer to Architect level.

Buy Top 50 Java Design-Pattern Interview Questions book on Amazon.com

Sample questions are:

  • When will you use Strategy Design Pattern in Java?
  • What is Observer design pattern?
  • What are the examples of Observer design pattern in JDK?
  • How Strategy design pattern is different from State design pattern in Java?
  • Can you explain Decorator design pattern with an example in Java?
  • What is a good scenario for using Composite design Pattern in Java?
  • Have you used Singleton design pattern in your Java project?
  • What are the main uses of Singleton design pattern in Java project?
  • Why java.lang.Runtime is a Singleton in Java?
  • What is the way to implement a thread-safe Singleton design pattern in Java?
  • What are the examples of Singleton design pattern in JDK?
  • What is Template Method design pattern in Java?
  • What are the examples of Template method design pattern in JDK?
  • Can you tell some examples of Factory Method design pattern implementation in Java?
  • What is the benefit we get by using static factory method to create object?
  • What are the examples of Builder design pattern in JDK?
  • What are the examples of Abstract Factory design pattern in JDK?
  • What are the examples of Decorator design pattern in JDK?
  • What are the examples of Proxy design pattern in JDK?
  • What are the examples of Chain of Responsibility design pattern in JDK?
  • What are the main uses of Command design pattern?
  • What are the examples of Command design pattern in JDK?
  • What are the examples of Interpreter design pattern in JDK?
  • What are the examples of Mediator design pattern in JDK?
  • What are the examples of Strategy design pattern in JDK?
  • What are the examples of Visitor design pattern in JDK?
  • How Decorator design pattern is different from Proxy pattern?
  • What are the different scenarios to use Setter and Constructor based injection in Dependency Injection (DI) design pattern?
  • What are the different scenarios for using Proxy design pattern?
  • What is the main difference between Adapter and Proxy design pattern?
  • What are the examples of Adapter design pattern in JDK?
  • What is the difference between Factory and Abstract Factory design pattern?
  • What is Open/closed design principle in Software engineering?
  • What is SOLID design principle?
  • What is Builder design pattern?
  • What are the different categories of Design Patterns used in Object Oriented Design?
  • What is the design pattern suitable to access elements of a Collection?
  • How can we implement Producer Consumer design pattern in Java?
  • What design pattern is suitable to add new features to an existing object?
  • Which design pattern can be used when to decouple abstraction from the implementation?
  • Which is the design pattern used in Android applications?
  • How can we prevent users from creating more than one instance of singleton object by using clone() method?
  • What is the use of Interceptor design pattern?
  • What are the Architectural patterns that you have used?
  • What are the popular uses of Fa├žade design pattern?
  • What is the difference between Builder design pattern and Factory design pattern?
  • What is Memento design pattern?
  • What is an AntiPattern?
  • What is a Data Access Object (DAO) design pattern?
Read the full book at www.amazon.com
Posted in Design Pattern

Leave a Reply

Your email address will not be published. Required fields are marked *

*