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
In java, how we can disallow serialization of variables?
Is minecraft 1.15 out?
What is the unit of plancks constant?
what is abstract class in Java?
What is jar?
How to write custom exception in java?
Explain the usage of this with constructors?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
How do constructors use this() and super()?
Explain how to convert any java object into byte array.
Why is java logo a cup of coffee?
Explain where variables are created in memory?
What's the base class of all exception classes?
What is square root in java?
What is the statements?