Difference between overloading and overridding?

Answer Posted / j.winston britto

Overloading means,
More than one method have same name and every one
differ in no. of arguments,type of arguments in a class.

Overridding means,
methods having same name and type in different
classes.In this we can use "super" key word

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write code of any action class?

548


we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1574


What is java dot?

498


What are predicates in java 8?

534


What is an immutable object? How do you create one in java?

604






What is the use of protected in java?

536


What an i/o filter?

567


Which oo concept is achieved by using overloading and overriding?

542


What is a function easy definition?

529


What is the main function in java?

533


How to access arraylist elements in java?

495


Which is better list or arraylist in java?

497


What is difference between hashset and hashmap?

564


What does index mean in java?

542


Explain covariant method overriding in java.

545