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 the use of declaring constructor as private?

Answer Posted / ranganathkini

By making all the constructors of a class private, you can
also prevent other class from extending the class without
marking the class final.

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about transient variables in java?

1096


What is the meaning of nullable?

1009


What is hashmap and map?

1023


What is <> used for in java?

1113


Why java is call by value?

1028


What is final keyword?

1155


What does three dots mean in java?

1124


What data type is true or false?

1040


What is the size of an array?

1031


Write a java program that prints all the values given at command-line.

1009


What happens if we don’t define serial version uid?

1026


What is the vector class in java programming?

1083


Explain about the performance aspects of core java?

1054


What does the string method compareto () do?

1055


Can variables be used in java without initialization?

1078