Java 2 v5.0 (Tiger) New Features (Paperback) (Java 2 v5.0 (Tiger) 新特性)

Herbert Schildt

  • 出版商: McGraw-Hill Education
  • 出版日期: 2004-07-29
  • 定價: $750
  • 售價: 1.3$99
  • 語言: 英文
  • 頁數: 216
  • 裝訂: Paperback
  • ISBN: 0072258543
  • ISBN-13: 9780072258547
  • 相關分類: Java 程式語言
  • 立即出貨(限量) (庫存=1)

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

相關主題

商品描述

Description:

Unleash the Programming Power of Tiger

If you already know Java and want to utilize the impressive array of innovations contained in Java 2, v1.5, this book is for you. Codenamed Tiger, Java 2 Platform, Standard Edition v5.0 (J2SE™ 5.0) is Java’s most extensive upgrade yet. Its many new features fundamentally alter the way Java code is written. For example, generics add a completely new syntax that enables the creation of type-safe, reusable code, and autoboxing simplifies the interplay between primitive types and objects. Moreover, all the new features work together to enable you to write more reliable code. By covering only what’s new in Tiger, this fast-paced guide gets you up to speed quickly, without rehashing what you already know. The world of Java is changing. Let best-selling author Herb Schildt show you how to move your programming skills to Java 2, v5.0 today.

Inside, you’ll:

  • Apply the power of generics to create type-safe, resuable code
  • Streamline code with autoboxing and auto-unboxing
  • Use the enhanced for loop to cycle through collections and arrays
  • Create more flexible methods through the use of varargs (variable-length arguments)
  • See how Java’s class-based approach to enumerations fundamentally increases their power
  • Embed supplemental annotations (metadata) into a source file
  • Import static members of a class or interface and then refer to them directly by name, without a class qualification
  • Create formatted output and read formatted input with Formatter and Scanner classes
  • Learn about the major changes to the Java API

    Herbert Schildt is a leading authority on Java, C, C++, and C#. His programming books have sold more than 3 million copies worldwide and have been translated into all major foreign languages.

 

 

Table of Contents:

1 The Tiger Is Loose

2 Autoboxing and Auto-Unboxing

3 Generics

4 The For-Each Version of the for Loop

5 Varargs: Variable-Length Arguments

6 Enumerations

7 Metadata

8 Static Import

9 Formatted I/O

10 Changes to the API

 

商品描述(中文翻譯)

描述:
釋放Tiger的程式設計力量

如果您已經熟悉Java並且想要利用Java 2, v1.5中包含的令人印象深刻的創新,那麼這本書就是為您而寫的。代號為Tiger的Java 2平台,標準版v5.0(J2SE™ 5.0)是Java迄今為止最全面的升級。它的許多新功能從根本上改變了Java代碼的撰寫方式。例如,泛型添加了一個全新的語法,使得可以創建類型安全、可重用的代碼,而自動裝箱則簡化了基本類型和對象之間的交互。此外,所有這些新功能共同作用,使您能夠撰寫更可靠的代碼。通過只涵蓋Tiger中的新功能,這本節奏快的指南可以讓您迅速上手,而不需要重複您已經知道的內容。Java的世界正在變化。讓暢銷作家Herb Schildt向您展示如何將您的編程技能轉移到Java 2, v5.0。

在這本書中,您將會:

- 使用泛型的威力創建類型安全、可重用的代碼
- 通過自動裝箱和自動拆箱來簡化代碼
- 使用增強的for循環遍歷集合和數組
- 通過使用可變長參數(varargs)創建更靈活的方法
- 瞭解Java基於類的枚舉方法如何從根本上增強其功能
- 將補充註釋(元數據)嵌入源文件
- 導入類或接口的靜態成員,然後直接通過名稱引用它們,無需類限定
- 使用Formatter和Scanner類創建格式化輸出和讀取格式化輸入
- 瞭解Java API的主要變化

Herbert Schildt是Java、C、C++和C#的權威。他的編程書籍在全球銷售超過300萬冊,並被翻譯成所有主要外國語言。

目錄:
1. Tiger的釋放
2. 自動裝箱和自動拆箱
3. 泛型
4. for循環的for-each版本
5. 可變長參數
6. 枚舉
7. 元數據
8. 靜態導入
9. 格式化輸入輸出
10. Java API的變化