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
How can we use primitive data types as objects?
What is scanner in java?
What is the purpose of an interface?
Explain the difference between abstract classes and interfaces in java?
Why is stringbuffer called mutable?
Can java arraylist hold different types?
how can i use a nonsynchronized hashtable?
What does a void function return?
What is module with example?
What is a parameter used for?
What is the purpose of checked and unchecked exceptions in JAVA?
What is the same as procedures?
When should I use stringbuffer?
What is outofmemoryerror in java?
What are nested classes in java?