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

a constructor which is declared with private accesspecifer,
we can call it is private constructor,so that we can nt
create object from out side of the class, in this way we
can provide security to our class

Is This Answer Correct ?    39 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should you use singleton pattern?

896


Can we use this () and super () in a method?

925


What is hash table in java?

939


What is a locale?

1093


Discuss different types of errors that generally occur while programming.

980


please send me hr interview questions in it industry

2061


What is an inner class in java?

903


What is polymorphism java example?

936


What checkbox method allows you to tell if a checkbox is checked?

945


How many bytes is double?

913


Is special character in java?

1047


Can java inner class be static?

973


How to perform bubble sort in java?

947


Is static variable stored in heap?

923


What is method overloading in JAVA? Why is it not present in C ?

1036