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

Java is pass by value or pass by reference? Explain

935


how to prepare for IT Officers Interview in Banks

1911


How do you represent a space in regex java?

959


Write a program to reverse a number in java?

1042


What is java argument list?

881


What is java abstraction with example?

983


who can i handle multiple client in RMI

1836


Compare overloading and overriding?

956


What is the basic of java?

974


What is the difference between int and integer in java?

985


How to compare strings in java?

922


Can we declare an array without size in java?

926


What does system.gc() and runtime.gc() methods do?

992


What comes to mind when someone mentions a shallow copy in java?

1065


Does importing a package imports its sub-packages as well in java?

927