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 the important features of Java 9 release?
What is the method to declare member of a class static?
What are the different conditional statements?
What are register variables what are the advantages?
What is a conditional equation?
Explain 5 features introduced in jdk 1.7?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
Why is multithreading important?
Can a constructor be private and how are this() and super() method used with constructor?
What is the difference between int and integer in java?
Why multiple inheritance is not supported by java?
What is java jit compilers?
What is nextint java?
What are 3 boolean operators?
What is a class object?