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
Is an array a vector?
What is purpose of find feature?
Mention the default values of all the elements of an array defined as an instance variable.
How can we avoid including a header more than once?
Is main a function?
What are the states of thread in java?
Is integer a class?
What is an class?
What is the meaning of immutable regarding string?
Write a java program for binary search?
How to access arraylist elements in java?
Why put method is used?
What are the main uses of this keyword?
Is singleton class thread safe?
What are the legal parameters?