• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java(intermediate)

 
Utkal Keshari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know
1 How to make a class singleton ?
2 Where singleton classes are used and what is the purpose ?
3 In a single application how many singleton classes I use ?
4 What are the methods to get the object of the singleton classes ?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Singleton Pattern
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Utkal Keshari:

3 In a single application how many singleton classes I use ?


None to very, very few.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic