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
How many arguments can be passed to main ()?
What do you know about the garbage collector?
What are the drawbacks for singleton class?
Can we return null in java?
describe synchronization in respect to multithreading? : Java thread
How many bits is a boolean?
What is a methodologist?
Can you make a constructor final in Java?
how is final different from finally and finalize in java?
What are the characteristics of java?
Explain super keyword in java.
What is identifier give example?
How do you allocate memory to object?
What is int lol?
What language is java written?