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

Can we use switch statement with strings?

798


Explain try and catch keywords in java?

853


what is recursion in java

798


How to find the given number is a prime number or not by getting input from the user

751


Can you give few examples of final classes defined in java api?

774


what is synchronization and why is it important? : Java thread

824


Objects or references which of them gets garbage collected?

717


What is the basic concept of java?

759


Is space a char?

703


What is maximum size of arraylist in java?

689


What are the advantages of inner classes?

720


Wha is the output from system.out.println(“hello”+null); ?

887


Why for each loop is used?

736


What is the purpose of static keyword in java?

702


What is hasnext in java?

768