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 many types of java are there?
How do you remove spaces in java?
Explain about join() method?
What is entry set in java?
Why is a string immutable?
What is boolean data type in java?
What is meant by memory leak?
What is the difference between throw and throws keywords?
What is the collections api?
Can we override singleton class?
how many types of Inheritance?
What is exception handling in java?
What is the association?
How will you initialize an Applet?
How do you convert an int to a double in java?