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...

why the constructor should be used in class,if there is no
constructor what will happen?

Answer Posted / ravikiran

constructor is used to initialize the variables during the
creation of instances.
If there is no constuctor no object will be gets created.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Garbage Collection in Java

1079


What is a default method?

1045


What is exception propagation?

1131


What is java basic concept?

1037


Which object oriented concept is achieved by using overloading and overriding?

1105


What are the differences between include directive and include action?

1184


Describe method overriding

1126


What does replaceall do in java?

912


What is sortedmap in java?

1028


What is stack example?

1022


What are the uses of synchronized keyword?

1001


How do you calculate roots in java?

1085


Can we use string in switch case in java?

1056


What is a constructor overloading in java?

1036


Explain importance of inheritance in java?

1019