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 / raji
class A and class B have same function name but different
arguments.overriding is possible only when both class A and
class B have same function name and same arguments.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Which class is the superclass of all classes?
Explain how to convert any java object into byte array.
Explain about serializable interface in java?
Can a main method be declared final?
What the difference is between execute, execute Query, execute Update?
Which variables are stored in stack?
What is proper subset?
Why parsing is done?
Is space a character in java?
What is a ternary operator in java?
Which class is the superclass for every class in java programming?
What are the differences between checked exception and unchecked exception?
How do you allocate memory to object?
How a string is stored in memory?
What are loops in java?