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

Which class is the superclass of all classes?

1106


Why is it called buffering?

1113


Can a hashset contain duplicates java?

974


What are parsers? Dom vs sax parser.

1041


How to stop a thread in java? Explain about sleep () method in a thread?

1009


Can we declare an interface as final?

1055


What is final int?

1015


Can private class be inherited in java?

1026


Why java is secure? Explain.

1036


What is the default execution method in java?

1194


What is empty list in java?

1071


Why call by value prevents parameter value change?

1072


Can we declare main () method as non static?

974


Enlist few advantages of inheritance?

1070


What is a heavyweight component?

1018