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

How do you replace a string in java?

1001


What is member in java?

1008


How to instantiate static nested classes in java?

1077


How do you reverse a list?

995


Where is java located?

1045


What are the different types of garbage collectors in java?

1127


How java enabled high performance?

1044


Is java owned by oracle?

1006


Can a class be final?

936


what is heap memory?

1093


What an i/o filter in java programming?

1091


What is stream api in java8?

1165


What is final class?

1018


What is java used for on a computer?

987


What is the difference between dom and sax parser in java?

966