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

Explain, why the constructor is required in implemented
class?

Answer Posted / ejp

A constructor isn't required so the question is futile. Both
answers above are wrong.

Specifically, in reply #1, 'if constructor is not
there,variables might be taken the garbage values' is itself
complete garbage.

Reply #2, is mostly irrelevant, but this statement 'to call
them we need pass parameters in main method' is also wrong.
Parameters are not required, and the reference to the main
method is pointless.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does hashset allow duplicates in java?

1122


What steps are taken when the OS shifts from one-thread execution to another?

1367


What is scope of a variable?

1099


What is a package in java? List down various advantages of packages.

1279


What is the properties class?

1092


What is prime number in java?

996


Why are global variables used?

1022


Is an array a vector?

1046


What is regex used for?

992


how can i use a nonsynchronized hashtable?

2571


What is the use of java?

961


What does sizeof return?

994


Explain the difference between intermediate and terminal operations in java8?

1115


What are controls and their different types in awt?

1089


Why can't we make a class private in java?

1039