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 the use of declaring constructor as private?

Answer Posted / anshul

A private constructor is a special instance constructor. It is commonly used in classes that contain static members only. If a class has one or more private constructors and no public constructors, then other classes (except nested classes) are not allowed to create instances of this class.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

1168


What are adapter classes?

1059


Explain about map interface in java?

1000


How will you invoke any external process in java?

1124


What are the 7 types of characters?

1082


What is the difference between preemptive scheduling and time slicing in java programming?

1030


Can I learn java without any programming experience?

1047


How do you find the maximum number from an array without comparing and sorting?

1127


What is the significance of listiterator?

1103


What is difference between next () and nextline () in java?

999


What is java english?

1009


Does chrome use java?

980


What does bitwise or mean?

1095


Why main function is static?

1258


What is jrmp?

971