Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Singleton classes in Java API  RSS feed

 
sirisha makkapati
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which are Singleton classes in Java API
Thanks..
 
Stephen Foy
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A singleton class can only be instantiated once.

http://en.wikipedia.org/wiki/Singleton_pattern
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't expect a clean list of singletons. The doc for Runtime reads like classic Singleton. What else do you think might be? What would you look for to identify them?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!