what is overloading in java?
Answer Posted / vijayakumar chinnasamy
Method overloading:
More than one method have same name but different type
of argument or differnt no. of arguments available in same
class or it subclass is called overloading.
Return type of method and access specifier of method is
not a problem in method overloading.
class A{
void diaplay(int a,int b){ }
void display(float a,float b){ }
void display(float a, int b){ }
void display(int a,int b){
void display(){ }
}
| Is This Answer Correct ? | 46 Yes | 22 No |
Post New Answer View All Answers
What is wrapper class html?
Difference between current previous versions of Java?
What is floor in java?
Why string is not a wrapper class?
What is a get method?
Define inheritance?
why doesn't java run on all platforms?
Why are the destructors for base class and derived class called in reverse order when the program exits
What methodology can be employed to locate substrings inside a string?
What does business logic mean?
How do you reverse a word in java?
How to display names of all components in a Container?
Is minecraft java edition free?
What is the advantage of functional interface in java 8?
What is backdrop?