Talk:Computer Science Design Patterns/Singleton

java.util.Calendar
Examples In Java, the class java.util.Calendar is a singleton. Its constructor is protected and you can get an instance by calling the getInstance method.

That is utter nonsense. This may look like a singleton, but subsequent calls to Calendar.getInstance won't return the same instance. Have to admit, that the method should be named "newInstance".
 * That's why you've put  instead. JackPotte (discuss • contribs) 20:37, 15 February 2017 (UTC)