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
Is assembly language a low level language?
Explain super keyword in java.
How much is a java license?
What is a boolean expression in java?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What is static block?
How do you find the absolute value?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What is the purpose of return statement?
can rmi and corba based applications interact ?
What data type is string java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What is scope & storage allocation of static, local and register variables? Explain with an example.
How to convert string to char and vice versa?
Explain the protected field modifier?