Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Design Patterns Interview Questions and Answers
Home
Questions
Design Patterns
0
votes
Q: Write a Java program to print Diamond Number Pattern.
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
printdiamondnumberpattern
0
votes
Q: Write a Java Program to display the left triangle star pattern on the system console.
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
lefttrianglestarpattern
0
votes
Q: Write a Java Program to display the pyramid as per the below design.
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
design-pattern
0
votes
Q: What would happen if we do not have a synchronized method for returning Singleton instance in a multi-threaded environment?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
returningsingletoninstance
0
votes
Q: How can you achieve thread-safe singleton patterns in Java?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
singletonpatterns
0
votes
Q: What is the main advantage of using a prototype design pattern over object creation using a new keyword?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
prototypedesignpattern
0
votes
Q: What are the components of the Composite Entity pattern?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
compositeentitypattern
0
votes
Q: What is the MVC design pattern?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
mvcdesignpattern
0
votes
Q: What do you understand by the Null Object pattern?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
nullobjectpattern
0
votes
Q: Consider a scenario where you are writing classes for providing market data and we have the flexibility to switch to different vendors or we can be directed to the Direct Exchange Feed. How will you approach this problem to design the system?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
directexchangefeed
0
votes
Q: What problem does Builder Pattern try to solve?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
builderpattern
0
votes
Q: What is an Observer Design Pattern?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
observerdesignpattern
0
votes
Q: What is a Command pattern?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
commandpattern
0
votes
Q: What is Decorator Design Pattern?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
decoratordesignpattern
0
votes
Q: What is a Chain of Responsibility pattern? In what scenarios to apply this pattern?
answered
Jul 24, 2023
in
Design Patterns
by
SakshiSharma
chainresponsibilitypattern
0
votes
Q: What are some instances where we prefer abstract classes over interfaces in Java?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
abstractclasses
0
votes
Q: What is a Bridge Design Pattern?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
bridgedesignpattern
0
votes
Q: What is Adapter design pattern ?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
adapter-design
adapter-design-pattern
adapter-pattern
0
votes
Q: What is a Factory Design Pattern?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
factorydesignpattern
0
votes
Q: How are design patterns different from algorithms?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
algorithmsdesignpatterns
0
votes
Q: How are design principles different from design patterns?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
principlesdesignpatterns
0
votes
Q: What are some of the design patterns used in Java’s JDK library?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
designpatterns
0
votes
Q: What do you understand by the Open-Closed Principle (OCP)?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
open-closedprinciple
ocp
0
votes
Q: What are the SOLID Principles?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
solidprinciples
0
votes
Q: What Is Gang of Four (GOF) in Design Patterns?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
gangoffour
gofdesignpatterns
0
votes
Q: How can you describe a design pattern?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
designpattern
+1
vote
Q: What are the advantages of Java Design Patterns?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
advantages
javadesignpatterns
0
votes
Q: What are design patterns?
answered
Jul 23, 2023
in
Design Patterns
by
Robindeniel
design
patterns
0
votes
Q: What are the features and advantage of WCF?
answered
Aug 12, 2020
in
Design Patterns
by
RShastri
#wcf
+1
vote
Q: Provide some scenarios when we could use WCF services
answered
Aug 12, 2020
in
Design Patterns
by
RShastri
#wcf
To see more, click for all the
questions in this category
.
...