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 / nagaraj
it is an overriding because we are attempting to riding the already ride class(class B with class A)
Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
What is static import in java?
Explain the overview of UDP messaging.
Why we cannot override static method?
What are the string methods in java?
Is array passed by reference in java?
Do I need java on my pc?
How many types of voids are there?
What is byte code and why is it important to java’s use for internet programming?
What is function and its uses?
what is the difference between process and thread? : Java thread
What do you understand by soft reference?
Can classes declared using the abstract keyword cab be instantiated?
How to compare two strings in java program?
If two threads have same priority which thread will be executed first ?
Compare overloading and overriding?