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
List out five keywords related to exception handling ?
Why enumeration is faster than iterator?
What is class array in java?
Does java support Operator Overloading?
Can we sort arraylist in java?
How do you escape a string?
What is a consumer in java?
Is vector ordered in java?
can java object be locked down for exclusive use by a given thread? : Java thread
What do you mean by exception handling in Java?
How does system arraycopy work in java?
Why does it take so much time to access an applet having swing components the first time?
How to compare two strings in java program?
What does int argc char * argv [] mean?
Can we use both this () and super () in a constructor?