how to change return type in java code example Example: Return type of override method should be same or not return type MUST be same in method overriding