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

Why do we need data structure in java?

1016


What is the program compilation process?

1033


What does += mean in java?

1016


Why Java is not pure Object Oriented language?

1058


What restrictions are placed on method overriding?

1099


Is string a data type in java?

976


What is the maximum size of array in java?

925


What are accessor methods in java?

946


Which sorting is best in java?

957


What are thread priorities and importance of thread priorities in java?

1061


How we create object in copy constructor?

1067


What data type is a string?

958


Why generics are used in java?

962


Can classes declared using the abstract keyword cab be instantiated?

1005


Are global variables initialized to zero?

909