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 collection api?
What is a parameter example?
What is the use of arraylist in java?
How do you reverse a string in java?
Does isempty check for null?
Is double bigger than float?
What is class forname used for?
What is string literal in java?
What do you mean by a JVM?
What are the methods used to implement for the key object in the hash map?
Is java owned by oracle?
What are the different types of collections in java?
Explain the selection sort algorithm and state its time complexity?
How do you find the maximum number from an array without comparing and sorting?
What is a percentage sign called?