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
Differentiate between static and non-static methods in java.
java Technical questions asked by JPMC
What are examples of modifiers?
Can we define constructor in inner class?
What are keywords and reserved words in java?
Is zero a natural number?
Explain constructors and types of constructors in java.
What is indexof?
What is super?
Can a class be defined inside an interface?
What does @param args mean in java?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
Why unicode is important?
What is the console in java?
Why java is platform independent? Explain.