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 / raji
class A and class B have same function name but different
arguments.overriding is possible only when both class A and
class B have same function name and same arguments.
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is a file pointer?
What is boolean keyword in java?
If goto and const is reserve words than why it is not work in java?
What is array command?
What do you mean by byte code?
Can we define package statement after import statement in java?
What is the purpose of return statement?
Is multiple inheritance supported by java?
Which methods are used during serialization and deserialization process?
Which collection is sorted in java?
what are Hostile Applets?
What is a method type?
What is static keyword in java?
Is string a class in java?
What is a stringbuilder?