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 / nagaraj
it is an overriding because we are attempting to riding the already ride class(class B with class A)
| Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
What is difference between == and === in js?
What is the difference between reader/writer and inputstream/output stream?
Why string is not a wrapper class?
What about abstract classes in java?
What is the use of arrays tostring () in java?
How to call one constructor from the other constructor ?
How do you make a thread in java?
What is bytecode in java ?
What languages are pass by reference?
What flag up means?
List the interfaces which extends collection interface?
How can you read an integer value from the keyword when the application is runtime in java? example?
Where is java located?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What do you mean by constructor?