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

What exceptions occur during serialization?

612


How can you handle java exceptions?

531


how to create multithreaded program? : Java thread

510


What is runtime locatable code?

870


What is maximum size of arraylist in java?

497






Is a class subclass of itself?

608


What is package protected in java?

528


What is charat java?

546


When is the garbage collection used in Java?

658


What is e in java?

544


What is the purpose of void?

540


What is the significance of java packages?

617


What is the difference between class forname and new?

552


Why we use multi threading instead of multiprocessing?

579


How is it possible for two string objects with identical values not to be equal under the == operator?

530