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 the difference between math floor and math round?
What is binary tree in java?
What do you mean by an interface in java?
How many threads does a core java have?
What are unchecked exceptions in java?
What ide should I use for java?
What is thread safe singleton?
Is hashset ordered java?
What is a method in programming?
Can java inner class be static?
What is the use of put method?
In how many ways we can do exception handling in java?
How do you write a scanner class in java?
Is java hashset ordered?
Is array serializable java?