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 / arthi

overloading means same method name but different parameters
are passed but overriding means same method name with same
parameters passed in different classes.

Is This Answer Correct ?    40 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is array dynamic in java?

483


What is a instance variable?

583


What is the difference between hashmap and hashtable? What is an interface?

508


Can a final variable be null?

549


How does finally block differ from finalize() method?

589






Difference between character constant and string constant in java ?

558


What is the full meaning of java?

538


When do we use hashset over treeset?

536


What is difference between char array and string?

528


What is the use of keywords in java?

555


Explain differences between checked and unchecked exceptions in java?

640


What is a vararg?

556


What is string intern in java?

554


What data type is string java?

538


What is Major and importance difference between for and foreach loop ?

574