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 you compare objects in java?

707


Is hashset ordered?

776


what are synchronized methods and synchronized statements? : Java thread

790


What does sizeof return?

773


Why are there no global variables in java?

811


What are the main features of java?

742


What is the current version of java?

779


Can we override the private methods?

755


What are the different types of constructor?

729


Why do people says “java is robust”?

778


What programs use java?

707


Is break statement can be used as labels in java?

719


What are the main concepts of oops in java?

1146


Can we override static methods in java?

828


Explain the protected field modifier?

843