What restrictions are placed on method overloading and
method overriding?
Answer Posted / javaguy
About said are absolutely correct. I would like to add some
more to method override.
The class/program who is overriding method should have
orverriding method visibility / access modifiers should be
same are greater but should not be lower.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
How do listeners work?
What are the differences between forwarding () method and sendredirect() methods?
What is difference between char array and string?
what is method reference in java 8?
What are the changes in java.io in java 8 ?
What is main string [] args?
What is final?
What is data structure in java?
What is the use of a copy constructor?
Is a case study a method or methodology?
What are implicit objects in java?
can used Protected Class outside Function.?
Why we override equals() method?
What is field name?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?