M

Mr. Dubey • 100.69K Points
Coach

Q. Which GOF design pattern is applied in the code snippet below?
public class PrintSpooler {
private static final PrintSpooler INSTANCE = new PrintSpooler();
private PrintSpooler() {}
public static PrintSpooler getInstance() {
return INSTANCE;
}
}

  • (A) printspooler design pattern
  • (B) singleton design pattern
  • (C) factory design pattern
  • (D) abstract singleton design pattern
Share

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics