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 are generic methods?
How can we run a java program without making any object?
What is ++ a in java?
Are constructors methods?
What is the this keyword?
What is the memory leak in java?
What are the types of relation?
Explain the difference between an Interface and an Abstract class?
What are the 6 boolean operators?
Write a program to reverse array in place?
Explain about the main() method in java?
What are static variables and functions?
What is hashing in java?
What is a vararg?
Which access specifier can be used with class ?