Distinguish method overloading and method overriding

Answer Posted / sushila

method overloading is method name should be same but
signature should be different.

method overriding is method name and arguments should be
same but return type will be same or wider.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should I use a singleton?

547


Can we use switch statement with strings?

612


What is procedure overloading?

1792


Explain the difference between protected and default access.

511


Explain, java is compatible with all servers but not all browsers?

600






Do extraneous variables affect validity?

520


What is the largest number a double can hold?

554


What is an eror in java?

552


Why do we override tostring method in java?

491


Can we have more than one package statement in source file ?

580


what is synchronization and why is it important? : Java thread

579


What is Mutex (Mutual Exclusion Object) ?

618


What is the need of transient variables in Java ?

572


When is the arraystoreexception thrown?

561


Is string is a data type?

562