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 happens if constructor is private?
What does this () mean in constructor chaining concept?
Describe the process as to how substring() methodology mechanisms in java.
When is the garbage collection used in Java?
Explain what are final variable in java?
What are untrusted applets?
What is the use of set in java?
What are abstract methods in java?
What is a void in java?
Can an interface implement another interface?
Can I declare class as static or private?
can rmi and corba based applications interact ?
How do generics work?
What is boolean used for?
What is a databasemetadata?