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
What is skeleton and stub?
What are 5 boolean operators?
Explain the importance of finally over return statement?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What does java stand for?
How to declare an arraylist in java?
What are the approaches that you will follow for making a program very efficient?
Can we extend singleton class in java?
Who is founder of java?
What is return code?
What causes memory leak in java?
What is a null point?
What's the access scope of protected access specifier?
Is ++ operator thread-safe in java?
How to find the largest value from the given array.