What is the difference between overloading and overriding a
function?
Answer Posted / praveen
Over riding also can be happens in the same class
eq :-
public void test(int i)
{
System.out.println(i);
}
public void test(String i)
{
System.out.println(i);
}
Over Loading - Compile time polymorphism
Over Riding - Run time polymorphism
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What is java in simple terms?
what is meant by HQL?
Can a constructor be private and how are this() and super() method used with constructor?
When arithmeticexception is thrown?
What does regex mean?
What is a line separator in java?
what is the messsage u r going to get from an objectoriented programing?
explain the difference between jdk and jvm?
Is java a utf 8 string?
Is call by reference possible in java?
What is the java virtual machine?
Why generics are used in java?
What is final method?
What does %d do in java?
Can we use this () and super () in a method?