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 / vijaya mahesh

It is neither overloading nor overriding

Is This Answer Correct ?    44 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create constructor in abstract class ?

574


State two differences between C and Java.

689


Are generics important java?

521


Why string is immutable or final in java

608


Can we cast any other type to boolean type with type casting?

535






What is pangram in java?

509


What is nullpointerexception?

552


What is a treeset in java?

542


What are the core java topics?

561


What is the purpose of a default constructor?

576


What is byte [] in java?

530


What is the difference between checked exception and unchecked exception?

524


Is object a data type?

555


Explain the difference between an Interface and an Abstract class?

622


What is javac in java?

558