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 differences between heap and stack memory?
What is main function purpose?
What is the difference between break and continue statements?
Which class is the superclass for all the classes?
How can you generate random numbers in java?
Can abstract class have private constructor?
What is the difference between preparedstatement and statement in java?
Is java 11 paid version?
Which of the following is not an isolation level in the JDBC
What is compareto () in java?
What is the difference between static method and instance method in Java?
What is the major difference between linkedlist and arraylist?
What is the escape character in java?
Can we have two methods in a class with the same name?
What are the types of web technologies?