employer cover photo
employer logo

CSC interview question

What is the difference between Overloading and Overriding in Java?

Interview Answer

Anonymous

29 Jul 2015

Explained that overloading is when multiple methods have the same name but different parameters; overriding is when a method in a subclass has the same name as a method in a parent class, but flow of control goes to the subclass, hence redefining (overloading) the method.