What restrictions are placed on method overloading and
method overriding?

Answer Posted / shamik

@ above one correction ...

the return type of overriding method can be a subtype of the type returned in the overridden method .It need not be exactly same .

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is <> used for in java?

674


Can we assign the reference to this variable?

549


What steps are taken when the OS shifts from one-thread execution to another?

906


What language is pass by reference?

574


What are checked exceptions?

585






Can an unreferenced object be referenced again?

770


What are the access modifiers in java?

591


How many types of exception can occur in a java program?

538


What is null data type?

538


Discuss 2D arrays.

610


What do you understand by a Static Variable?

634


When is the arraystoreexception thrown?

572


What function extracts specified characters from a string?

567


Describe the various concepts related to object oriented programming (oop).

592


Why is inheritance used in java?

611