What restrictions are placed on method overloading and
method overriding?
Answer Posted / shamik
@ above one correction ...
the return type of overriding method can be a subtype of the type returned in the overridden method .It need not be exactly same .
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Does java support multiple inheritance or not?
What is 32 bit float?
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
What is difference between local variable and global variable?
explain local datetime api in java8?
Why null value is used in string?
What is lastindexof in java?
What is the purpose of static keyword in java?
In the below example, what will be the output?
What is a local block?
What does system.gc() and runtime.gc() methods do?
What do you mean by default constructor in java?
Which are the two subclasses under exception class?
Why we used break and continue statement in java?
What is passing value java?