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 the public field modifier?

1076


Can we have 2 main methods in java class?

1062


What is a parameter in java?

1032


What is a singleton puppy?

1039


Write a program to reverse array in place?

1112


What is connection class in java?

1008


How many bytes is a string in java?

1035


What is an iterator interface in java programming?

1018


What is super constructor?

1051


Can long be null in java?

1079


Why is String immutable?

1113


How to pass arraylist to stored procedure in java?

1263


How to make a read-only class in java?

1233


What is bufferedwriter?

1029


What is Major and importance difference between for and foreach loop ?

1201