Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to prevent to create multiple objects of a java class?

Answer Posted / naseer

declare constructor as private .that class only create one object

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the significance of class loaders in bootstrap?

1011


What is ‘has a’’ relationship in java?

1275


What about abstract classes in java?

1105


How do I start learning java?

1126


What is type inference in java8?

1100


Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

2781


What is the main difference between java platform and other platforms?

1172


What is the access scope of protected access specifier?

1038


What is variable and constant explain with example?

1163


What are features of java?

1080


What is communist flag?

1066


In java, how we can disallow serialization of variables?

1040


Is an object null?

1026


How do you achieve polymorphism in java?

1032


What is the difference between multitasking and multithreading in Java

1232