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
How to add menushortcut to menu item?
Why are variables important in research?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What are the advantages of arraylist over arrays?
What is the final keyword?
What is the class in java?
What do you understand by synchronization?
What is singleton service?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
Does google use java?
What is the collection interface?
What is difference between word and integer?
How to sort elements in a parallel array in java?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What is the difference in between cpp and java? Can u explain in detail?