Overriding Example using Classes
Overriding Example using Interface
Overloading example

Here in line 9 and 10 the indexof method is being overloaded in java api