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

Can we declare an interface as final?

1001


What is the benefit of inner / nested classes ?

944


What is the syntax and characteristics of a lambda expression?

995


Is it necessary that each try block must be followed by a catch block?

981


What is anagram of a string?

901


What is a subsequence of a string?

1011


What is the use of bufferedreader?

963


Can we have two main methods in a java class?

1007


Can a class be declared as static?

1122


Which is better singleton or static class?

936


How to create an interface?

1025


Define an abstract class with reference to java.

955


Explain about the dynamic behavior of core java?

1079


What was java originally called?

912


What is a numeric format?

1025