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 string array?
What is an argument in java?
Why is stringbuffer thread safe?
What is jvm? How its run?
What is "this" keyword in java? Explain
Is there is any difference between a scrollbar and a scrollpane?
Can you make a constructor final in Java?
Can we use this () and super () in a method?
Can It is possible to synchronize the constructor of a Java Class?
What is the synonym of framework?
what are synchronized methods and synchronized statements? : Java thread
What is immutable data?
Which one of the following suits the description of a string better: derived or primitive?
How do you test a method for an exception using junit?
What is difference between pointer and reference?