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 is it possible for two string objects with identical values not to be equal under the == operator?
What is a flag value?
Differences between C and Java?
What is the difference between the paint() and repaint() methods in java programming?
What is difference between static class and singleton pattern?
How do you create a first line indent?
What is meant by memory leak?
Is java same as core java?
What is jagged array in java?
Is set thread safe java?
Can bool be null?
How to retrieve data from database in java using arraylist?
How do you check if a string is lexicographically in java?
What are the types of java languages?
What is java util function?