Explain method overloading and overriding?

Answer Posted / ravikiran(aptech mumbai)

method overloading is the type of polymorphism with a
different argument list and same method name and can takes
place inside the same class only

method overriding is the process of writing a different
functionality having the same method signature

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sortedmap interface?

546


What are different data structures in java?

524


What is difference between hashset and hashmap?

550


What is mvc in java?

554


Why vector class is used?

536






Why do we need hashmap in java?

553


What is hashing principle in java?

548


Can a constructor be protected?

529


Is null a string in java?

552


Is string is a data type?

568


What is polymorphism java example?

540


Can we define constructor in inner class?

535


Can we write any code after throw statement?

599


What is garbage collection? Can it be forced to run?

539


Can a method inside a interface be declared as final?

520