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

what is object-oriented programming in java?

997


Can a static block throw exception?

1046


Differece between class and generic class?

976


How do you create an array in java?

939


Why parsing is done?

917


Is java a super set of javascript?

1040


What are untrusted applets?

1071


How finally used under exception handling?

896


What are inbuilt functions in java?

994


What is singleton class and how can we make a class singleton?

1056


What are nested classes in java?

1037


Can you write a java class that could be used both as an applet as well as an application?

908


What is difference between char array and string?

1048


Can I extend singleton class in java?

1038


What is the purpose of a default constructor?

1034