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 / shrirang & chetak

yes, above program is overloading the disp() method

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stringwriter?

537


What is the difference between dom and sax parser in java?

528


whatis Home interface and Remoteinterface? with example?

1545


What is difference between calling start() and run() method of thread?

555


Can we have this () and super () together?

602






What is ph and buffers?

517


What is meant by interface?

559


Difference between this() and super() in java ?

610


What are the advantages of java?

509


how we can make a write-only class in java?

558


How do you do a line break in java?

489


Why is java called java?

541


Differentiate between a class and an object.

560


How do I know if java is installed?

513


What do you understand by synchronization?

587