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
What is void data type?
Is math an abstract class in java?
Why do we need wrapper classes?
What is keyword and identifier?
Why is multiple inheritance not supported in java?
What is java string pool?
State the difference between creating string as new () and literal.
Which category the java thread do fall in?
What classes of exceptions may be thrown by a throw statement?
What is maximum size of arraylist in java?
What is the r character?
How is treeset implemented in java?
Is java map thread safe?
What is a constructor overloading in java?
What are the advantages of encapsulation in java?