Distinguish method overloading and method overriding

Answer Posted / sarbbottam bandyopadhyay

For method overloading the return type have to be same. Only the number of argument or type of argument or both will be different. But return type have to be the same.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between equals() and?

589


How does varargs work in java?

611


What is an immutable object? How do you create one in java?

602


What happens if we don’t define serial version uid?

572


What is sortedset in java?

574






Explain Basics of OOP Language in java

591


What is the latest version of java?

584


What is the purpose of return statement?

631


Can we have two methods in a class with the same name?

582


How can a gui component handle its own events in java programming?

534


How to implement an arraylist in java?

508


Which is bigger float or double java?

525


What is the difference between jvm and jre? What is an interface?

553


Can a method inside a interface be declared as final?

529


How can you set an applet’s height and width as a percentage?

514