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
What is object class in java?
How many bytes is string in java?
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 can a gui component handle its own events in java programming?
How destructors are defined in java?
How can an object be unreferenced?
What is data type in java?
What are the two parts of a conditional statement?
Explain when we should make an instance variable private.
Can a set contain duplicates?
Explain the difference between intermediate and terminal operations in java8?
What are the main features of java?
Explain about collection interface in java?
What is variable declaration and definition?
How does callback work in java?