class A
{
public void disp(int a,int b)
{
System.out.println("hai");
}
}
class B
{
public void disp(int a,int b,int c)
{
System.out.println("hai");
}
}
above program is overloading or overriding?
Answer Posted / shrirang & chetak
yes, above program is overloading the disp() method
Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
Is a string literal?
What does the “static” keyword mean?
How to declare objects of a class ?
What is a class component?
What is command line argument in java?
How do you declare an array that will hold more than 64KB of data?
Explain about static imports in java?
What is indexof in java?
Why is it called a string?
Why method overriding is used?
Can you explain the usages of class.forname()?
What is difference between arraylist and list in java?
What is the use of callablestatement?
What are predefined functions?
What is the meaning of variables in research?