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

Why are there no global variables in java?

573


What is the maximum size of hashmap in java?

523


How many types of variables are there?

661


Explain method overloading?

564


What is the difference between access specifiers and access modifiers in java?

565






What is the console in java?

667


Can static methods access instance variables in java?

565


Which is best ide for java?

511


What is the use of System class?

600


Can a class be private?

506


Can you use abstract and final both with a method?

566


What are different exception types exceptions available in java ?

470


What is mean by exception?

541


What is a variable declaration?

515


What is a top level class in java?

521