O'Reilly logo
  • Tushar Pandey thinks this is interesting:

As long as you’ve changed the argument list, you’re overloading the method, so the return type doesn’t have to match that of the supertype version


Cover of OCA Java SE 8 Programmer I Exam Guide (Exams 1Z0-808)


You cannot keep the arguments same and still change the return type. That's compile time error