`
bo521dai
  • 浏览: 18867 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

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)

 

 

分享到:
评论

相关推荐

    C# 5.0 Programmer’s Reference

    Chapter 1: The C# Environment Chapter 2: Writing a First Program Chapter 3: Program and Code File Structure Part II: C# Language Elements Chapter 4: Data Types, Variables, and Constants Chapter 5: ...

    The C programming Language(chm格式完整版)

    Chapter 1: A Tutorial Introduction Getting Started Variables and Arithmetic Expressions The for statement Symbolic Constants Character Input and Output File Copying Character Counting Line ...

    OCP Java SE 8 Programmer II Exam Guide (Exam 1Z0-809)

    Declarations, access control, and enums Object orientation Assertions and exceptions Dates, times, locales, and resource bundles I/O and NIO Generics and collections Inner classes Lambda expressions ...

    OCA OCP Java SE 7 Programmer I - II Study Guide(SYBEX,2014)

    * Declarations and access control * Object orientation * Assignments * Operators * Strings and arrays * Flow control and exceptions * Assertions and Java 7 exceptions * String processing, data ...

    The C programming Language

    110362-8 (paperback) ISBN 0-13-110370-9 <br>Contents Preface Preface to the first edition Introduction Chapter 1: A Tutorial Introduction Getting Started Variables and ...

    Turbo C++ 3.0[DISK]

    instant access to the Borland forums with their libraries of technical information and answers to common questions. If you are not a member of CompuServe, see the enclosed special offer, and ...

    Turbo C++ 3.00[DISK]

    instant access to the Borland forums with their libraries of technical information and answers to common questions. If you are not a member of CompuServe, see the enclosed special offer, and ...

    The Art of Assembly Language Programming

    Memory Layout and Access 4.0 - Chapter Overview 4.1 - The 80x86 CPUs:A Programmer's View 4.1.1 - 8086 General Purpose Registers 4.1.2 - 8086 Segment Registers 4.1.3 - 8086 Special ...

    Addison.Wesley.The.Java.Programming.Language.4th.Edition.Aug.2005.chm

    Chapter 10Control Flowdescribes how control statements direct the order of statement execution. <br>Chapter 11Generic Typesdescribes generic types: how they are written and used, their power, and ...

    ebook-Practical C Programming, 3rd Edition(ebook).pdf

    1. Multiply and divide come before add and subtract. 2. Put parentheses around everything else. Consider two programs. One was written by a clever programmer using all the tricks. The program ...

    The C Programming Language 第二版 英文版

    Chapter 1 - A Tutorial Introduction.............................. 1.1 Getting Started................................ 1.2 Variables and Arithmetic Expressions........... 1.3 The for statement.........

Global site tag (gtag.js) - Google Analytics