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 does multithreading take place on a computer with a single cpu?
Which sorting is best in java?
Is jdk required on each machine to run a java program?
How do you change an int to a string?
What is the platform?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
How do you execute a thread in java?
What is the difference between abstract classes and interfaces?
How you can force the garbage collection?
What is the difference between class forname and new?
Is string an object?
What is a protected class in java?
Write a method that will remove given character from the string?
What is the use of string and stringbuffer?
How to perform merge sort in java?