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

v-model life cycle

2043


What are the core java topics?

1048


Does .length start 0 java?

1008


What is formatted output?

956


In a class implementing an interface, can we change the value of any variable defined in the interface?

1085


what is instanceof operator used in java?

1037


Can a class be private?

962


What is difference between c++ and java ?

1124


What is variable explain with example?

1062


Can we use switch statement with strings?

1045


What are alternatives to java serialization?

1125


Describe 2 different ways to concatenate two strings.

1202


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

1086


What is a dynamic array in java?

1178


What is skeleton and stub? What is the purpose of those?

1129