MCQs > IT & Programming > Java > The pattern described below is known as: public class Foo{ private static Foo instance; private Foo(){ } private static getInstance(){ if (instance == null){ instance = new Foo(); } return instance; }

Java MCQs

The pattern described below is known as: public class Foo{ private static Foo instance; private Foo(){ } private static getInstance(){ if (instance == null){ instance = new Foo(); } return instance; }

Answer

Correct Answer: the Singleton pattern

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it