what is overloading and overriding with example?
Answer Posted / rajesh r
OVERLOADING MEANS SAME METHOD NAME WITH DIFFERENT
PARAMETERS.
BOTH SHOULD BE DEFINED IN SAME CLASS ITSELF.
OVERRIDING MEANS SAME METHOD NAME WITH SAME PARAMETERS.THIS
CAN ASSOCIATED IN A CLASS AND ITS SUBCLASS.(VIRTUAL,
OVERRIDE)
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is split return?
Why string is immutable or final in java
Explain the transient field modifier?
Difference between process and thread?
What are the differences between throw and throws?
Explain oops concepts in detail?
What is considered an anti pattern?
What is unsigned char?
What is the meaning of find and replace?
Why does java does not support multiple inheritance? Explain
What is the size of a string in java?
What is the Scope of Static Variable?
What is the difference between size and length in java?
Which browsers work with java?
What does exclamation mean in java?