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 define a singleton class?
What is sorting algorithm in java?
Explain runtime exceptions?
What is Applet Stub Interface ?
What is generic class?
What do you know about the garbage collector?
How to disable caching on back button of the browser?
What are the ways in which a thread can enter the waiting state?
Can we convert stringbuilder to string in java?
What is an empty class? What functionality does it offer in Java?
what is the final keyword denotes in java?
Can a list be null in java?
What is the difference between a local variable and an instance variable?
What is a for loop in java?
How do I get the | symbol on my keyboard?