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
What are the 8 data types in java?
Which data type is a class in java?
Does hashset allow duplicates in java?
What are structs in java?
What are the actions that can occur when a thread enters blocked state?
What does int [] mean in java?
What is an example of a boolean?
Can list be null in java?
Is alive in java?
How java enabled high performance?
What is application tier?
Is null == null in java?
Where is const variable stored?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
How many classes can any class inherit java?