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
Can we access the non-final local variable, inside the local inner class?
What is the difference between an inner class and a sub-class?
What is variable declaration and definition?
What is the difference between a window and a frame in java programming?
Which package has light weight components in java programming?
Which non-unicode letter characters may be used as the first character of an identifier?
Why java is call by value?
What does java edition mean?
What is the use of java?
What is ternary operator?
Is set thread safe java?
Is age a discrete variable?
When a byte datatype is used?
Is integer passed by reference in java?
Does every java program need a main?