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 / nagaraj
it is an overriding because we are attempting to riding the already ride class(class B with class A)
| Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
What is the Scope of Static Variable?
What is the use of parseint in java?
How do you calculate square roots?
What is function and method in java?
What is Applet Stub Interface ?
What is multi level inheritance in java?
Explain the difference between abstract classes and interfaces in java?
What does s mean in regex?
Differentiate between vector and array list.
Which containers use a flowlayout as their default layout in java programming?
Explain jvm, jre, and jdk?
How to convert string to byte array and vice versa?
Can we create our own daemon thread?
What is void in java?
What class allows you to read objects directly from a stream in java programming?