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
Why are there no global variables in java?
What is the maximum size of hashmap in java?
How many types of variables are there?
Explain method overloading?
What is the difference between access specifiers and access modifiers in java?
What is the console in java?
Can static methods access instance variables in java?
Which is best ide for java?
What is the use of System class?
Can a class be private?
Can you use abstract and final both with a method?
What are different exception types exceptions available in java ?
What is mean by exception?
What is a variable declaration?
What is a top level class in java?