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 supplier in java?
What is the maximum size of byte array in java?
Is void a wrapper class?
Difference between error and exception
What are the disadvantages of object oriented programming?
What is the use of toarray () in java?
What does n mean in java?
Difference between this() and super() in java ?
What is the multi-catch block in java?
Explain what access modifiers can be used for methods?
How do you take thread dump in java?
What happens when main () method is declared as private?
Can we access instance variables within static methods ?
How to find the index of the largest number in an arraylist java?
Does every java program need a main?