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
what is the difference between yielding and sleeping? : Java thread
What about abstract classes in java?
Why does java does not support multiple inheritance? Explain
Is array an object in java?
What are the methods available in a class?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
How will you print number in reverse (descending) order in BST.
What is better- service oriented or batch oriented solutions?
Explain the difference between serializable and externalizable in java?
What is a method header?
Explain jvm, jre, and jdk?
What is the difference between the prefix and postfix forms of the ++ operator?
What is indexof?
Who is the owner of java?
What is a void in java?