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

Define an abstract class with reference to java.

1056


What is the size of boolean variable?

1136


Garbage collection in java?

1068


What is volatile data type?

1070


Is math class static in java?

1157


What is json parser in java?

1101


Is java a software?

1005


Explain the features of interfaces in java?

1034


Can we return null in java?

1222


What is an anonymous class in java?

1165


Why java applets are more useful for intranets as compared to internet?

1131


What is the difference between stringbuffer and stringbuilder?

1111


Why string objects are immutable in java?

1086


Explain some best practices you would apply while using collection in java?

1100


Define reflection.

1051