Record real problem: java appear unreachable statement abnormal

java compiler to unreachable statement marked as runtime errors, unreachable statement is a compiler decides never executed it.
The following scenarios will be of Statement unreachable:
(1) written statement after reutrn statement.
(2) written statement after the throw statement.
(3) break, continue defining statement after statement.
(4) "\ u10100" // legally equivalent to '\ u1010' and the string "0."
(5) shift operator may be used to long int char short byte.
Access (6) categories of controls may be public or nothing added.
(7) goto is a reserved word but not keywords. then nothing.
(8) assigned to an object type subclasses of the superclass after the cast, the compiler no exception, but there will be a runtime exception.

Original: https: //blog.csdn.net/feicongcong/article/details/62219769

Guess you like

Origin www.cnblogs.com/ITzhangda/p/11018771.html