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 a parameter example?
What is functional interface in javatpoint?
What is overloading and overriding in java?
Why do we override tostring method in java?
What are the different types of java?
How can you traverse a linked list in java?
Is there a sort function in java?
What is string builder in java?
Can you inherit a constructor java?
Can a class extend more than one class?
What are some characteristics of interference class?
What is the difference between preemptive scheduling and time slicing in java programming?
Is array synchronized in java?
Is java developer a good career?
Why java is secure? Explain.