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 / mariyappan
overloading is the process of defining the same function
with different parameters.which can be defined within class.
overriding is the process of defining the function name in
the more than one classes.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How do you compare objects in java?
Is hashset ordered?
what are synchronized methods and synchronized statements? : Java thread
What does sizeof return?
Why are there no global variables in java?
What are the main features of java?
What is the current version of java?
Can we override the private methods?
What are the different types of constructor?
Why do people says “java is robust”?
What programs use java?
Is break statement can be used as labels in java?
What are the main concepts of oops in java?
Can we override static methods in java?
Explain the protected field modifier?