Java变量居然可以是中文

An identifier is an unlimited-length sequence of Java letters and Java digits, the first of which must be a Java letter.
Letters and digits may be drawn from the entire Unicode character set, which supports most writing scripts in use in the world today, including the large sets for Chinese(//中文), Japanese, and Korean. This allows programmers to use identifiers in their programs that are written in their native languages.(//重点在这里)
当个人感觉该是尽量用英文加中文注释的方式符合习惯,这个仅仅是为了打破书本的规定。

你可能感兴趣的:(Java)