adplus-dvertising
frame-decoration

Question

Which design pattern ensures that only one object of particular class gets created?

a.

Singleton pattern

b.

Filter pattern

c.

State pattern

d.

Bridge pattern

Answer: (a).Singleton pattern

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which design pattern ensures that only one object of particular class gets created?

Similar Questions

Discover Related MCQs

Q. Which design pattern suggest multiple classes through which request is passed and multiple but only relevant classes carry out operations on the request?

Q. Which design pattern represents a way to access all the objects in a collection?

Q. What does MVC pattern stands for?

Q. Is design pattern a logical concept.

Q. Which design pattern works on data and action taken based on data provided?

Q. Which of below is not a dependency management tool?

Q. Which of the following is not a maven goal?

Q. Which file is used to define dependency in maven?

Q. Which file is used to specify the packaging cycle?

Q. Which environment variable is used to specify the path to maven?

Q. Which of the below is a source code management tool?

Q. Can we run Junits as a part of Jenkins job?

Q. Which command can be used to check maven version?

Q. Which of the following is not true for Ant?

Q. Which maven plugin creates the project structure?

Q. Which version of Java introduced annotation?

Q. Annotation type definition looks similar to which of the following?

Q. Which of the following is not pre defined annotation in Java?

Q. Annotations which are applied to other annotations are called meta annotations.

Q. Which one of the following annotations is not used in Hibernate?