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

How many bits is a string in java?

780


What is arrays sort in java?

757


Explain about the interpreter in java?

833


What is a line break example?

757


Explain exception chaining in java?

836


What is the hashcode () and equals () used for?

731


What string is utf8?

737


What is a method vs function?

755


What is the super void?

689


Can we write method inside a method in java?

748


Can a constructor be protected?

786


When do I need to use reflection feature in java?

825


How do you achieve singleton?

731


How many bytes is string in java?

885


What is oop principle in java?

746