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

Overloading class has different returntype.
overloading comes with in class but overriding comes in two
classes.
Overloading is resolved at compiletime
Overriding is resolved at runtime.

Is This Answer Correct ?    39 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to show whether a graph is a tree or not using adjacency matrix.

596


What is assembly used for?

506


What are the rules for variable declaration?

505


What is the difference between overriding and overloading in OOPS.

565


Can a static class have a constructor?

521






Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain

1435


What is string buffer?

506


Is null a string?

558


Why arraylist is used in java?

551


How do you compare objects in java?

503


explain the difference between jdk and jvm?

562


What are different type of exceptions in java?

551


What is module in project?

518


When should you make a function static?

544


What string is utf8?

547