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 do you sort words in java?
What is oop in java?
Why we use methods in java?
Which class is the superclass of all classes?
What is difference between Heap and Stack Memory?
What is the difference between yielding and sleeping?
Is heap stored in ram?
What are the new features in java 8?
what is thread? : Java thread
what do you mean by java annotations?
What is mnemonic in assembly language?
How do you check if a character in a string is a digit or letter?
how can i use a nonsynchronized hashtable?
Why does java have two ways to create child threads? Which way is better?
You're given a Boolean 2D matrix, can you find the number of islands?