top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Singleton pattern from Java Development Kit explain with example?

0 votes
81 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...