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 we access static members in java?
How to write custom exception in java?
What are the restrictions that are applied to the java static methods?
Is java call by value?
what are the methods in object?
What is the benefit of singleton pattern?
Which number is denoted by leading zero in java?
Which collection does not allow duplicates in java?
What does the @override annotation do?
What is a "pure virtual" member function?
What is loop in java?
What's the difference between int and integer in java?
What is java ceil?
What language is java written?
What is arrays aslist in java?