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
can any body body expalin best definitions & best real time exaples for opps concepts.
What are the uses of java?
Give few difference between constructor and method?
What are the various access specifiers for java classes?
Tell us something about an iterator.
If an application has multiple classes in it, is it okay to have a main method in more than one class?
Why java does not support pointers?
Which collection is sorted in java?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What is object english?
State some situations where exceptions may arise in java?
What is the constructor?
Is null a string or object in java?
Why is whitespace important?
What is arrays sort in java?