O'Reilly logo
  • Aadil Hussain thinks this is interesting:

If there’s code that can be executed only after a return statement, the class will fail to compile.

From

Cover of OCA Java SE 8 Programmer I Certification Guide

Note

compilation error