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

What are parsing rules?

935


What is the purpose of using the java bean?

998


Are strings immutable in java?

919


What is Mutex (Mutual Exclusion Object) ?

1079


What is queue in java?

1066


What are the escape sequences in java?

978


What is the use of using enum to declare a constant?

956


What is garbage collector?

1009


Does java return by reference?

952


Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).

2065


How do you detect memory leaks?

1005


What is the purpose of java?

934


What is the synchronized method modifier?

1133


Can we declare an array without size in java?

922


What is protected access modifier?

953