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

Constructor is used initialize certian paramameters to each
object on their creation.We can also overload
constructors.So we can initialize objects with diff params.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is struts in java?

1039


Explain when classnotfoundexception will be raised ?

1038


Explain about map interface in java?

993


What is meant by the value of a variable?

917


What is a function argument in java?

995


What is a finally block? Is there a case when finally will not execute?

1069


we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

2030


What is the difference between a choice and a list?

1077


What are the differences between this and super keyword?

944


what is a thread pool in java and why is it used?

1001


Why we do exception handling in java and how many types of exceptions are there?

1119


write a program that list all permutations of ABCDEF in which A appears before B?

2483


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

1101


what is meant by HQL?

1067


What are the drawbacks of singleton class?

1002