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 / shrirang & chetak
yes, above program is overloading the disp() method
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
what is a working thread? : Java thread
What is the difference between equals() and == in java?
Can we use catch statement for checked exceptions?
Can we override constructor in java?
Is alive method in java?
what is meant by Garbage collection?
What is empty string literal in java?
What is an example of a boolean?
What is hashset in java?
Why does java have two ways to create child threads? Which way is better?
Name container classes in java programming?
Why is string buffer better than string ?
Name some classes present in java.util.regex package.
What is the collections api?
What are adapter classes?