What restrictions are placed on method overloading and
method overriding?
Answer Posted / aditya mohata
in method overloading we hav to hav the methods in the same
class n they hav to hav diff signatures so as to avoid
ambiguity.they hav to hav the same method name.
in method overriding we hav to hav the same name of the
methods n hav to hav them in different classes with same
signatures.
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is the difference between jfc & wfc?
What does string intern() method do?
What is the map interface in java programming?
What is the method in java?
What is a protected method?
What is the use of default method in interface in java?
What is run time allocation?
What is intern method in java?
How do you implement tree mirroring in java?
What state is a thread in when it is executing?
How do you generate random numbers in java?
What is a parent class in java?
What is cr keyboard?
Can we overload the main() method?
What is a java list?