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 the byte range?

1034


What is multi-catch block in java?

1078


What is threaded programming and when is it used? : Java thread

1065


What is canonical name in java?

1147


What’s the difference between applets and standalone program?

1046


What is map in java?

1003


What are java packages? What is the significance of packages?

1014


What is hashing in java?

1040


Explain the difference between throw and throws in java?

1002


What are the ways in which a thread can enter the waiting state?

943


What is the buffer limit?

1029


What is gui programming?

1032


What is a nested list?

965


Can we declare the main method of our class as private?

1005


Why java is secure? Explain.

1042