Blog Archives
Page 1 of 3
1 2 3

06: Web design patterns MVC2, MVP, MVVM & MVW

Q1. What’s wrong with Servlets? What is a JSP? What is it used for? What do you know about model 0 (aka MVC0), model 1 (aka MVC1) and model 2 (aka MVC2) patterns? In “model 2” architecture, if you set a request attribute in your JSP, … Read more ›...

Members Only Content
Log In Register Home


12 Java design patterns interview Q&As

Java Design Patterns Interview Questions Links: Why do Proxy, Decorator, Adapter, Bridge, and Facade design patterns look very similar? What are the differences? | Builder pattern and immutability in Java | Flyweight pattern and improve memory usage & performance | Java ExecutorService with strategy design pattern | Java dynamic proxy...

Members Only Content
Log In Register Home


14: Singleton design pattern in Java & 5 key follow up Interview Q&As

When you are asked in job interviews to explain a design pattern that you had used, many pick “singleton” as it is easy to explain. But, “singleton” design pattern does have lots of nuances that can lead to further drill down questions mentioned in this post. This post also explains...

Members Only Content
Log In Register Home


4 JEE Design Patterns Interview Q&As

Unlike J2EE, Java EE 6 consists of annotated classes without any dependencies on the platform. This approach eliminates the need to separate business logic from the infrastructure and makes the majority of J2EE patterns and best practices superfluous. The following J2EE design patterns can be obsolete: — Service Locator (Use...

Members Only Content
Log In Register Home


Builder pattern and immutability in Java

Next time you are asked to explain a design pattern in an interview, you could pick this as opposed to the very common factory and singleton design patterns. Q1. How will you go about using a builder design pattern instead of constructors to create thread-safe immutable objects? … Read more...

Members Only Content
Log In Register Home


Page 1 of 3
1 2 3

800+ Java Interview Q&As Menu

Top