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 set ordered in java?
Explain notify() method of object class ?
What is stringwriter?
Why is the main method static?
What is the maximum size of byte array in java?
What happens when main () method is declared as private?
What is the function of static in java?
What is the implementation of destroy method in java. Is it native or java code?
Can we use catch statement for checked exceptions?
Explain what is encapsulation?
What is the difference between stream and buffer?
What is implicit object in java?
What is java used for?
What is jit and its use?
what is ststic with example