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...

what is private constructor?what are the uses of writing
private constructor in our program?

Answer Posted / amit

Private constructor can be used to make a pure static
class, using it we can create only one instance of class at
the loading time.

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start learning java?

1072


What is string syntax?

1054


What is the static variable?

1122


How do you use nextline in java?

977


What are aggregate functions explain with examples?

1064


Can we declare a class as static?

1097


Why does it take so much time to access an applet having swing components the first time?

1925


Why stringbuilder is not thread safe in java?

1015


Explain a situation where finally block will not be executed?

1041


What does exp mean in math?

991


How many types of voids are there?

992


Can we use this () and super () in a method?

979


What is static keyword in java?

1001


Is java type safe?

966


What is the use of hashmap in java?

1090