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 is hashmap and map?
What does %d do in java?
How do I type unicode?
How do you convert string to int in java?
What is multi level inheritance in java?
What is a finally block?
What is the exact difference in between Unicast and Multicast object?
Why we go for collections in java?
How many characters is 2 bytes?
What is nullpointerexception in java?
Describe how to implement singleton design pattern in struts.
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
Can list be null in java?
Differences between traditional programming language and object oriented programming language?
Explain restrictions for using anonymous inner classes?