当前位置: 代码迷 >> Access >> Chapter 一: Declarations and Access Control -
  详细解决方案

Chapter 一: Declarations and Access Control -

热度:6145   发布时间:2013-02-26 00:00:00.0
Chapter 1: Declarations and Access Control ---

Legal Identifiers

■ Identifiers must start with a letter, a currency character ($), or a connecting

character such as the underscore ( _ ). Identifiers cannot start with a number!

■ After the first character, identifiers can contain a

ny combination of letters,

currency characters, connecting characters, or numbers.

■ In practice, there is no limit to the number of characters an identifier can

contain.

■ You can't use a Java keyword as an identifier. Table 1-1 lists all of the Java

keywords including one new one for 5.0, enum.

■ Identifiers in Java are case-sensitive; foo and FOO are two different identifiers.

?

Complete List of Java Keywords (assert added in 1.4, enum added in 1.5)

?

?

  相关解决方案