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
What is method in java ?
How do you use substring in java?
Can we declare a class as static?
Why convert an applet to an application?
What is Java Reflection API? Why it’s so important to have?
What is the this keyword?
What is a loop java?
how we can make a read-only class in java?
Can a constructor call the constructor of parent class?
Can inner class final?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
What are the methods used to implement for the key object in the hash map?
What is the difference between the paint() and repaint() methods?
Can a static class implement an interface?
What is the final variable?