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
java Technical questions asked by JPMC
What are the main features of java?
What is java util function?
How many bits is a float?
Why string is called as immutable?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
Is it possible to use string in the switch case?
What are the default and parameterized constructors?
What environment variables do I need to set on my machine in order to be able to run java programs?
How do you sort a string in java?
How define set in java?
When is the finalize() called?
What is immutable state?
Can we pass null as argument in java?
Why java uses the concept of the string literal?