Login with  Log in with facebook
Hiring Manager? SIGN UP HERE
0   Object
0

How to restrict a class to have only one object in java??

Nadhiya Shanmugam Sundaram
09/02/2011 at 08:39
3 Answers
1
0

@Nadhiya using Singleton. here's my blog on it

http://www.q1a.com/q1a/Blog/Article/ThreadSafe-Singleton-in-Java

Rishi Yadav
09/02/2011 at 14:56

2
0

Hello Nadhiya,

 use singleton dessign patteren so that create only one object.

Atul Kumar Goyal
09/06/2011 at 04:46

3
0

hii everyone

by using singletone class. we can create only one object of singletone class.

Sachin Kumar
01/31/2012 at 12:54

If you want to post any answer to this forum then you need to log in.
Schedule a Demo

Schedule a Demo with us

Name *
Email *
Phone *
Company *
Details