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
Explain 5 features introduced in jdk 1.7?
What technique can be employed to compare two strings?
Which data type is a class in java?
How do you initialize an arraylist in java?
Why do we need wrapper class?
What are exception handling keywords in java?
What does this mean java?
What is the program compilation process?
what is mutual exclusion? : Java thread
is it possible to instantiate the math class?
What is final, finally, finalize?
what is meant wrapper classes?
what is the significance of listiterator in java?
Justify your answer that you can't define a method inside another method in java, if you can then how?
Does list allow duplicates in java?