JVM Knowledge
  • By convention, we say that V is [un]assigned after any break, yield, continue, return, or throw statement (§14.15, §14.21, §14.16, §14.17, §14.18).

    The notion that a variable is "[un]assigned after" a statement or expression really means "is [un]assigned after the statement or expression completes normally". Because a break, yield, continue, return, or throw statement never completes normally, it vacuously satisfies this notion.

  • In a yield statement with expression e, or a return statement with expression e, or a throw statement with expression e, V is [un]assigned before e iff V is [un]assigned before the yield, return, or throw statement.