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 two classes are used to read data only?

868


What are recursive functions? Give some examples?

870


Is there a sort function in java?

781


Can we have try without catch block?

869


What does the “static” keyword mean?

833


What are the Main functions of Java?

860


Explain about transient variables in java?

870


What is the instance of an object?

863


What do you mean by inner class in java?

777


explain multi-threading in java?

796


Implement a stack with push (), pop() and min() in O(1) time.

838


Why do we need data structure in java?

825


Explain covariant method overriding in java.

796


Does every java program need a main?

772


What is an example of declaration?

769