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 string pooling concept?
How does callback work in java?
What is meant by oops concept in java?
What are the differences between heap and stack memory in java?
Explain the difference between abstract class and interface in java?
Which of the classes will have more memory allocated?
What is the purpose of using java.lang.class class?
What is tree in java?
Explain about interrupt() method of thread class ?
Can a serialized object be transferred via network?
Why pass by reference is not possible in java?
What are the types of literals?
How large is a boolean?
What is the primary benefit of encapsulation?
Why is a string immutable?