The Java Language Specification, 3/e (Paperback)
暫譯: Java 語言規範(第三版)(平裝本)

James Gosling

  • 出版商: Addison Wesley
  • 出版日期: 2005-06-01
  • 定價: $2,100
  • 售價: 8.0$1,680
  • 語言: 英文
  • 頁數: 684
  • 裝訂: Paperback
  • ISBN: 0321246780
  • ISBN-13: 9780321246783
  • 相關分類: Java 程式語言
  • 立即出貨

買這商品的人也買了...

商品描述

Descriptions:

Written by the inventors of the technology, The Java™ Language Specification, Third Edition, is the definitive technical reference for the Java™ programming language. If you want to know the precise meaning of the language's constructs, this is the source for you.

The book provides complete, accurate, and detailed coverage of the Java programming language. It provides full coverage of all new features added since the previous edition, including generics, annotations, asserts, autoboxing, enums, for-each loops, variable arity methods, and static import clauses.

 

Table of Contents:

Preface.

Preface to the Second Edition.

Preface to the Third Edition.

1. Introduction.

    Example Programs.

    Notation.

    Relationship to Predefined Classes and Interfaces.

    References.

2. Grammars.

    Context-Free Grammars.

    The Lexical Grammar.

    The Syntactic Grammar.

    Grammar Notation.

3. Lexical Structure.

    Unicode.

    Lexical Translations.

    Unicode Escapes.

    Line Terminators.

    Input Elements and Tokens.

    White Space.

    Comments.

    Identifiers.

    Keywords.

    Literals.

    Separators.

    Operators.

4. Types, Values, and Variables.

    The Kinds of Types and Values.

    Primitive Types and Values.

    Reference Types and Values.

    Type Variables.

    Parameterized Types.

    Type Erasure.

    Reifable Types.

    Raw Types.

    Intersection Types.

    Subtyping.

    Where Types Are Used.

    Variables.

5. Conversions and Promotions.

    Kinds of Conversion.

    Assignment Conversion.

    Method Invocation Conversion.

    String Conversion.

    Casting Conversion.

    Numeric Promotions.

6. Names.

    Declarations.

    Names and Identifiers.

    Scope of a Declaration.

    Members and Inheritance.

    Determining the Meaning of a Name.

    Access Control.

    Fully Qualified Names and Canonical Names.

    Naming Conventions.

7. Packages.

    Package Members.

    Host Support for Packages.

    Compilation Units.

    Package Declarations.

    Import Declarations.

    Top Level Type Declarations.

    Unique Package Names.

8. Classes.

    Class Declaration.

    Class Members.

    Field Declarations.

    Method Declarations.

    Member Type Declarations.

    Instance Initializers.

    Static Initializers.

    Constructor Declarations.

    Enums.

9. Interfaces.

    Interface Declarations.

    Interface Members.

    Field (Constant) Declarations.

    Abstract Method Declarations.

    Member Type Declarations.

    Annotation Types.

    Annotations.

10. Arrays.

    Array Types.

    Array Variables.

    Array Creation.

    Array Access.

    Arrays: A Simple Example.

    Array Initializers.

    Array Members.

    Class Objects for Arrays.

    An Array of Characters is Not a String.

    Array Store Exception.

11. Exceptions.

    The Causes of Exceptions.

    Compile-Time Checking of Exceptions.

    Handling of an Exception.

    An Example of Exceptions.

    The Exception Hierarchy.

12. Execution.

    Virtual Machine Start-Up.

    Loading of Classes and Interfaces.

    Linking of Classes and Interfaces.

    Initialization of Classes and Interfaces.

    Creation of New Class Instances.

    Finalization of Class Instances.

    Unloading of Classes and Interfaces.

    Program Exit.

13. Binary Compatibility.

    The Form of a Binary.

    What Binary Compatibility Is and Is Not.

    Evolution of Packages.

    Evolution of Classes.

    Evolution of Interfaces.

14. Blocks and Statements.

    Normal and Abrupt Completion of Statements.

    Blocks.

    Local Class Declarations.

    Local Variable Declaration Statements.

    Statements.

    The Empty Statement.

    Labeled Statements.

    Expression Statements.

    The if Statement.

    The assert Statement.

    The switch Statement.

    The while Statement.

    The do Statement.

    The for Statement.

    The break Statement.

    The continue Statement.

    The return Statement.

    The throw Statement.

    The synchronized Statement.

    The try statement.

    Unreachable Statements.

15. Expressions.

    Evaluation, Denotation, and Result.

    Variables as Values.

    Type of an Expression.

    FP-strict Expressions.

    Expressions and Run-Time Checks.

    Normal and Abrupt Completion of Evaluation.

    Evaluation Order.

    Primary Expressions.

    Class Instance Creation Expressions.

    Array Creation Expressions.

    Field Access Expressions.

    Method Invocation Expressions.

    Array Access Expressions.

    Postfix Expressions.

    Unary Operators.

    Cast Expressions.

    Multiplicative Operators.

    Additive Operators.

    Shift Operators.

    Relational Operators.

    Equality Operators.

    Bitwise and Logical Operators.

    Conditional-And Operator &&.

    Conditional-Or Operator ||.

    Conditional Operator ? :.

    Assignment Operators.

    Expression.

    Constant Expression.

16. Definite Assignment.

    Definite Assignment and Expressions.

    Definite Assignment and Statements.

    Definite Assignment and Parameters.

    Definite Assignment and Array Initializers.

    Definite Assignment and Enum Constants.

    Definite Assignment and Anonymous Classes.

    Definite Assignment and Member Types.

    Definite Assignment and Static Initializers.

    Definite Assignment, Constructors, and Instance Initializers.

17. Threads and Locks.

    Locks.

    Notation in Examples.

    Incorrectly Synchronized Programs Exhibit Surprising Behaviors.

    Memory Model.

    Final Field Semantics.

    Word Tearing.

    Non-atomic Treatment of double and long.

    Wait Sets and Notification.

    Sleep and Yield.

18. Syntax.

    The Grammar of the Java Programming Language.

Index.

Credits.

Colophon.

商品描述(中文翻譯)

描述:

由技術的發明者所撰寫的《Java™ 語言規範(第三版)》是 Java™ 程式語言的權威技術參考。如果您想了解語言結構的精確含義,這本書是您的最佳來源。

本書提供了 Java 程式語言的完整、準確和詳細的涵蓋。它全面介紹了自上一版以來新增的所有功能,包括泛型、註解、斷言、自動包裝、列舉、增強型 for 迴圈、可變參數方法和靜態導入子句。

目錄:

前言。

第二版前言。

第三版前言。

1. 介紹。

示例程式。

符號。

與預定義類別和介面的關係。

參考文獻。

2. 語法。

上下文無關文法。

詞法文法。

語法文法。

文法符號。

3. 詞法結構。

Unicode。

詞法翻譯。

Unicode 轉義。

行結束符。

輸入元素和標記。

空白。

註解。

識別符。

關鍵字。

字面量。

分隔符。

運算符。

4. 類型、值和變數。

類型和值的種類。

原始類型和值。

參考類型和值。

類型變數。

參數化類型。

類型擦除。

可重用類型。

原始類型。

交集類型。

子類型。

類型的使用位置。

變數。

5. 轉換和提升。

轉換的種類。

指派轉換。

方法調用轉換。

字串轉換。

類型轉換。

數值提升。

6. 名稱。

聲明。

名稱和識別符。

聲明的範圍。

成員和繼承。

確定名稱的意義。

存取控制。

完全限定名稱和標準名稱。

命名慣例。

7. 套件。

套件成員。

主機對套件的支援。

編譯單元。

套件聲明。

匯入聲明。

顶级類型聲明。

唯一的套件名稱。

8. 類別。

類別聲明。

類別成員。

欄位聲明。

方法聲明。

成員類型聲明。

實例初始化器。

靜態初始化器。

建構子聲明。

列舉。

9. 介面。

介面聲明。