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
Name few "optional" classes introduced with java 8 ?
Write a program to find the whether a number is an Armstrong number or not?
Can finally block be used without a catch?
what is function overloading in java?
Compare Mutex and Semaphore in java.
What is the difference between jvm and jre? What is an interface?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is callablestatement? How you can call stored procedure to pass in parameter?
What are the different approaches to implement a function to generate a random number?
Can a class be private in java?
What is meant by javabeans?
Difference between a class and an object?
What all access modifiers are allowed for top class ?
What is the difference between object oriented programming language and object based programming language?