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 / neha

we can not create instance of object with new operator.if u
do not want the class to be inherited then we declare the
construtor as private when we used Private Construtor
Static metods are used this construtor are also used for
creating singleton object

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of set in java?

1002


What are advantages of using Java?s layout managers than windowing systems?

2370


what is a thread pool in java and why is it used?

1003


What is a values collection view ?

1085


Difference between character constant and string constant in java ?

1020


Can we have multiple classes in single file ?

1066


What are inbuilt functions in java?

1086


Explain an intermediate language?

970


Can you explain the final method modifier?

1010


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

1007


Explain jvm, jre, and jdk?

1017


What is the effect of keeping a constructor private?

951


What is a generic data type?

1040


What is an abstract method in java programming?

1042


explain copyonwritearraylist and when do we use copyonwritearraylist?

949