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
When would you use a static class?
Does garbage collection occur in permanent generation space in jvm?
What are the advantages of exception handling in java?
Why do you canvas?
Can we override constructors?
What are autoboxing and unboxing? When does it occur?
Why is method overloading not possible by changing the return type in java?
How do you escape in java?
What is object-oriented paradigm?
What is length in java?
What is the use of System class?
What is an infinite loop?
Can we serialize singleton class?
What are accessor methods in java?
Are there structures in java?