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

prevent to access by other class even sub class cant have
permission to create object of that base class.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we pass null as argument in java?

943


How do you take thread dump in java?

997


What is meant by the value of a variable?

915


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

981


How do you create immutable object in java?

1043


why are there separate wait and sleep methods? : Java thread

1022


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

1158


How can a gui component handle its own events?

1110


what is deadlock? : Java thread

1007


What does .equals do in java?

1090


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

1081


What is use of functional interface in java 8? Explain

1015


Does string is thread-safe in java?

1083


What is the technique adopted to create an immutable class?

1109


Where are global variables stored?

954