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
Which class contains a method: cloneable or object?
why are there separate wait and sleep methods? : Java thread
What does file separator do in java?
What are the 4 types of research methods?
What is the formula to calculate percentage?
Can a constructor be private and how are this() and super() method used with constructor?
What is structure of java heap? What is perm gen space in heap?
Are private methods final?
Why local variables are stored in stack?
Is null function in java?
Define Multiprogramming and Multiprocessing in java.
Tell me are there implementations for sorting and searching in the java libarary?
How thread scheduler schedule the task?
What is one third plus one third as a fraction?
Why destructor is not used in java?