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
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is assembly used for?
What are the rules for variable declaration?
What is the difference between overriding and overloading in OOPS.
Can a static class have a constructor?
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
What is string buffer?
Is null a string?
Why arraylist is used in java?
How do you compare objects in java?
explain the difference between jdk and jvm?
What are different type of exceptions in java?
What is module in project?
When should you make a function static?
What string is utf8?