waht happens when a return type ,even void is specified for
a constructor?
Answer Posted / shankar
*A constructor is a special method which has the same name
as that of the class which is used for the initialising and
instance,when it is being created itself.
*Normal method may or may not returns values when a normal
method does not return value it is mentioned explicitly
with void keyword
**ANSWER**-- 7 is write
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Which graphs are functions?
If an object is garbage collected, can it become reachable again?
Can we write method inside a method in java?
What's the purpose of using break in each case of switch statement?
What is navigable map in java?
Is java hashset ordered?
What are the types of arrays in java?
What are the types of collections in java?
What do you mean by compiler?
Explain the difference between an object-oriented programming language and object-based programming language?
what is encapsulation in java? Explain
Is java ee a framework?
How many bits is a boolean?
What are different types of constants?
What is the numeric promotion?