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


Please Help Members By Posting Answers For Below Questions

How many bits is a word?

569


What is the relationship difference the canvas class and the graphics class?

561


What are operators and its types?

575


What is sortedmap interface?

557


What's the base class in java from which all classes are derived?

745






What is parsing in java?

533


What is the meaning of 3 dots in java?

682


What’s the difference between applets and standalone program?

534


What is the benefit of inner classes in java?

614


What is a instance variable?

583


Difference between arraylist and hashset in java?

547


Can we have a method name same as class name in java?

583


What is difference between classpath and path variables in java?

556


What is the use of protected in java?

536


Is null in java?

553