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 / arun
Since two class are not in a not related to each other so
this is neither overloading nor overriding
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is a container in a gui?
What are recursive functions? Give some examples?
What is the maximum size of hashmap in java?
Why do I need to declare the type of a variable in java?
explain different ways of using thread? : Java thread
what is instanceof operator used in java?
Why is the main method declared static?
Is string a class?
what is daemon thread and which method is used to create the daemon thread? : Java thread
Why java is a platform independent? Explain
What is an infinite loop? How infinite loop is declared?
Can we override the static methods?
How do you check whether the list is empty or not in java?
What is public/private protected in java?
Why singleton class is used in java?