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


Please Help Members By Posting Answers For Below Questions

In java, how we can disallow serialization of variables?

554


Is minecraft 1.15 out?

546


What is the unit of plancks constant?

574


what is abstract class in Java?

652


What is jar?

633






How to write custom exception in java?

601


Explain the usage of this with constructors?

530


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

8623


How do constructors use this() and super()?

547


Explain how to convert any java object into byte array.

551


Why is java logo a cup of coffee?

625


Explain where variables are created in memory?

584


What's the base class of all exception classes?

566


What is square root in java?

586


What is the statements?

591