top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Singleton pattern from Java Development Kit explain with example?

0 votes
246 views
Singleton pattern from Java Development Kit explain with example?
posted Apr 30, 2015 by Roshni

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Answer to this question is java.lang.Runtime

There are many classes in Java Development Kit which is written using singleton pattern, here are few of them:

Java.lang.Runtime with getRuntime() method 

Java.awt.Toolkit with getDefaultToolkit() 

Java.awt.Desktop with getDesktop() 
answer May 5, 2015 by Karthick.c
...