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

In order to restrict the class to get subclassed

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class be declared as protected?

1061


Write a program in java to find the maximum and minimum value node from a circular linked list.

1156


whatis Home interface and Remoteinterface? with example?

2040


What is the difference between char and char *?

1151


What is literal example?

1013


Can we have multiple public classes in a java source file?

1278


Can we modify the throws clause of the superclass method while overriding it in the subclass?

1085


Why do we use string?

1122


Write a method that will remove given character from the string?

1086


Why pass by reference is not possible in java?

1111


Can static methods access instance variables in java?

1145


how many types of Inheritance?

1216


How to perform quicksort in java?

1195


What is the purpose of a transient variable?

1123


What is collections framework?

1209