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 / arun
Since two class are not in a not related to each other so
this is neither overloading nor overriding
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
How many bits is a word?
What is the relationship difference the canvas class and the graphics class?
What are operators and its types?
What is sortedmap interface?
What's the base class in java from which all classes are derived?
What is parsing in java?
What is the meaning of 3 dots in java?
What’s the difference between applets and standalone program?
What is the benefit of inner classes in java?
What is a instance variable?
Difference between arraylist and hashset in java?
Can we have a method name same as class name in java?
What is difference between classpath and path variables in java?
What is the use of protected in java?
Is null in java?