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 / shereef.k
It is neither Overloading nor Overriding , because these two methods are defined in two different class, and it can make overlaoding when class B extends Class A. It can never make Overriding because the parameter list in two methods are different.
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is == and === in javascript?
What is close method? How it's different from Finalize & Dispose?
What access modifiers can be used for class ?
How we can run a jar file through command prompt in java?
What do you mean by Hash Map and Hash Table?
What is bubble sort in java?
What happens when heap memory is full?
Which software is used for java programming?
What is string syntax?
Can you sort a list in java?
What is the latest version of java?
How will you communicate between two applets?
Is passing by reference faster?
What is Major and importance difference between for and foreach loop ?
In which order the iterator iterates over collection?