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

What loop means?

954


Is java ee a framework?

982


Explain the selection sort algorithm and state its time complexity?

1014


Can a class be defined inside an interface?

1031


What do you mean by default constructor in java?

1066


What are multiple inheritances? Is it supported by java?

950


What is the importance of main method in Java?

1055


What is return keyword in java?

1053


Can java inner class be static?

1018


What is the difference between the prefix and postfix forms of the ++ operator?

1017


Can we have multiple classes in a single file?

976


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1100


What are daemon Threads in java?

1199


Which eclipse is best for java?

996


What is the symbol for space?

996