Answer Posted / priyabrata patro
Method overloading happens in class with same method name but by modifying below features
1> By changing number of parameters
2> By changing ordinal position of parameter , i mean to say here is by changing datatype place.
And method overriding happens in two or more than two class , i mean defining same method declaration without any modification within two class and among of that two class , one class must extend another class and further also you can override this method , and this procedure continues till one subclass leaves overriding this method.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How can you avoid serialization in child class if the base class is implementing the serializable interface?
How do you trim a space in java?
Explain jdk, jre and jvm?
For class CFoo { }; what default methods will the compiler generate for you>?
What is a lock or purpose of locks in java?
What is udp in java?
If you are given the name of the function at run time how will you invoke the function?
Which collection is thread safe in java?
what is synchronization? : Java thread
What is time complexity algorithm?
What is the multi-catch block in java?
What is the difference between normal report & matrix report?
How the metacharacters are different from the ordinary characters?
Explain the importance of finally over return statement?
How many inner classes can a class have?