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

How many bits is a boolean?

1132


What is functional interface in java example?

1053


What is a nested list?

1022


5 Coding best practices you learned in java?

1062


How do you override a private method in java?

1028


What is a flag variable?

1028


What are different types of arrays?

1052


Why string is not thread safe?

1048


How garbage collection is done in java?

1102


How java is similar to c?

1090


How is hashcode calculated in java?

1087


Can a method inside a interface be declared as final?

1046


What is a text string?

1142


What is a subsequence of a string?

1117


What is nextint java?

1131