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 you sort words in java?
How finally used under exception handling?
How do you trim a space in java?
Explain the difference between serializable and externalizable in java?
How are variables stored?
What is difference between ++ I and I ++ in java?
How do you create a reference in java?
What is the purpose of an interface?
Can we create object of static class?
How many types of variables are there?
What is difference between iterator and enumeration in java?
Why do we need hashmap in java?
Explain java coding standards for constants?
Can you override static methods?
Can you call a method in a method?