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 / anusha

IT IS METHOD OVERLOADING

Is This Answer Correct ?    4 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Detail discussions on JVM, memory management and garbage collector.

550


Where to store local variables?

579


What is the difference between scrollbar and scrollpane?

607


What is the advantage of functional interface in java 8?

519


What is ‘has a’’ relationship in java?

720






Can a class extends itself in java?

527


What is general methodology?

565


What is map java?

511


Can you give names of Container classes?

1849


What access modifiers can be used for methods?

555


What is the string function?

551


What does s mean in regex?

549


What is super keyword explain with example?

527


Explain the differences between static and dynamic variables?

580


What happens if constructor is private?

560