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


Please Help Members By Posting Answers For Below Questions

How do I know if java is installed?

514


How can you say java is object oriented?

587


What happens to a static var that is defined within a method of a class?

547


Where pragma is used?

594


What is the use of put method?

514






What is the use of java?

526


what is the difference between thread and runnable types? : Java thread

542


Why declare Main() inside the class in java ?

606


What is mean by collections in java?

562


Why to use nested classes in java?

583


What is the primary benefit of encapsulation?

554


What is ++ a in java?

566


What do you mean by data type?

543


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

537


What is finalize()?

604