waht happens when a return type ,even void is specified for
a constructor?
Answer Posted / krishna kumar g.
Answer 2 is exactly correcr.I have done practiclly.No
compile time errors.
Code will run and executes sucessfully.But it treats as
method not as constructor.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is instance example?
What are the legal operands of the instanceof operator?
What is better- service oriented or batch oriented solutions?
What are inbuilt functions in java?
What is a char in java?
What is split return?
Is java se open source?
How many types of array are there?
Which class is the superclass for every class in java programming?
What is a text string?
Explain heap sort?
What is equlas() and hashcode() contract in java? Where does it used?
Why does java doesnt suuport unsigned values?
Is static a keyword in java?
What is downcasting?