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

Is java util list serializable?

531


What things should be kept in mind while creating your own exceptions in java?

621


What is an 8 bit word?

588


Is it possible to specify multiple jndi names when deploying an ejb?

553


Give few examples of final classes defined in Java API?

698






What are different types of multitasking?

538


What is return used for in java?

515


What is exception handling in java?

570


What is fail fast in java?

576


I want to re-reach and use an object once it has been garbage collected. How it's possible?

533


how we can create packages in java?

514


Can I use % with real numbers?

558


Where are the card layouts used?

603


What are wrapped classes in java programming?

578


What is unicode full form?

546