Infogain Interview Question

Difference between method overloading and overriding in java?

Interview Answer

Anonymous

Dec 20, 2017

Overloading occurs when two or more methods in one class have the same method name but different parameters. Overriding means having two methods with the same method name and parameters.

1