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
How do you call a reference in java?
Why char array is preferred over string for storing password?
What do you mean by local class?
What does this mean java?
What do you understand by Header linked List?
can java object be locked down for exclusive use by a given thread? : Java thread
Differentiate between the constructors and methods in java?
What is Garbage Collection in Java
What does sizeof return?
What is ++ a in java?
What methodology can be utilized to link to a database?
Can arraylist contain null values?
What is the integer of 16?
Write a program to reverse array in place?
What is difference between synchronize and concurrent collection in java?