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
why doesn't java run on all platforms?
Write a factorial program using recursion in java?
Explain hashset and its features?
Explain super keyword in java.
What is the use of join method?
Differentiate between static and non-static methods in java.
What is the generic function?
Explain the difference between call by refrence and call by value?
What is the difference between the font and fontmetrics classes in java programming?
What are the features of java?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
Why we used break and continue statement in java?
Write a program to find maximum and minimum number in array?
Explain the available thread states in a high-level?
Does constructor be static?