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 the best way to findout the time/memory consuming process?
Can a static member function access member variable of an object?
How do you make a thread in java?
How do you use equal in java?
What is executor memory?
What does escaping a character mean?
What are dot operator queries?
How many wrapper classes are there in java?
What do you mean by static variable?
Is heap stored in ram?
What is default switch case? Give example.
List out benefits of object oriented programming language?
Which is fastest collection in java?
What are the actions that can occur when a thread enters blocked state?
What is mean by collections in java?