joshma edited this page Mar 5, 2012 · 6 revisions
Clone this wiki locally


  • When types are incompatible, the return type is matched with the operator for the rest of error checking. i.e. false && 1 + true would give two errors, for (int + boolean) and (boolean && int)
  • Local variables and parameters are allowed to shadow field or method names
  • Shadowed methods cannot be called.
  • Scanner errors may result in a fatal error.