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 are thread safe functions?
What is the difference between preemptive scheduling and time slicing in java programming?
Is finalize() similar to a destructor?
What is the difference between an array and an array list?
What is abstraction in java?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
Define a package.
What are "methods" and "fields"?
Can we sort hashmap in java?
What is the default access specifier for variables and methods of a class?
What is ascii format?
What is yield () in java?
What is the use of static class?
Does a function need a return?
What is the primitive type short?