

MCQOPTIONS
Saved Bookmarks
1. |
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 |
Answer» C. factory design pattern | |