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
Explain the protected field modifier?
Difference between static and dynamic class loading.
What are the differences between abstract class and interface?
What is a copy constructor in java?
What is Java Annotations?
What is difference between jdk,jre and jvm?
What language is pass by reference?
Realized?
Explain list interface?
What is the difference between hashmap and hashtable? What is an interface?
How is java created?
How many decimal places is a double?
What is callablestatement? How you can call stored procedure to pass in parameter?
What is method in research paper?
What is Hierarchy of exception?