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 / esha prasad
Over loading is polymorphism implementation in same class,
where two or more methods can share same name differing in
parameters passed.
Overriding is polymorphism implementation in different
classes having parent child relationship and the
funtionality in parent class is over shadowed by the
funtionality in subclass.
| Is This Answer Correct ? | 72 Yes | 14 No |
Post New Answer View All Answers
Explain about varargs in java?
how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application
Which sorting algorithm is best in java?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
Can string be considered as a keyword?
What is the default size of arraylist in java?
What are the advantages of compiled language?
What is user defined exception in Java?
How do I get a substring?
I want to store more than 10 objects in a remote server? Which methodology will follow?
What is port number in java?
Explain garbage collection in java?
What is main method?
How many digits can a float hold?
How do you generate random numbers in java?