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 difference between final and immutable?
What is the difference between serial and throughput garbage collector?
Can we extend immutable class?
What language is an assembler written in?
Is there any limitation of using inheritance?
How many types of voids are there?
What is integer parseint?
How concurrent hashmap works?
How do you create a reference in java?
how would you implement a thread pool? : Java thread
What is the default value of byte datatype in java?
What is volatile keyword in java
Explain about procedural programming language or structured programming language and its features?
Explain wait() method of object class ?
What is off heap memory?