Java Interview Question
Use this basic question and answer to prepare for your next Java interview.
What is method overloading and method overriding?
Method overloading is having several forms of the same method, each differing in the formal argument list.
Method overriding is when the exact same method definition is created in a sub-class, which results in hiding the base-class method.