Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>
Answer Posted / ganga
using same methodname with different signatures is known as
overloading where as
changing the definition of the parentclass in chidclass is
known as overridding.
| Is This Answer Correct ? | 7 Yes | 9 No |
Post New Answer View All Answers
What are the drawbacks of reflection?
How to find the given number is a prime number or not by getting input from the user
What are the four corner stones of oop?
How do you implement polymorphism in our day to day life?
Why is java multithreaded?
What’s the difference between unit, integration and functional testing?
What is the default value of float and double datatype in java?
What are the drawbacks of singleton class?
What are the Static and Dynamic Variables? Differentiate them.
Can we use return in constructor?
What are multiple inheritances? Is it supported by java?
What does a boolean method return?
Can I learn java in 3 months?
What is abstraction in java?
Is java developer a good career?