Core Java, Volume I -- Fundamentals, 8/e (Paperback)
暫譯: 核心 Java,第 I 卷 -- 基礎知識,第 8 版 (平裝本)
Cay S. Horstmann, Gary Cornell
- 出版商: Prentice Hall
- 出版日期: 2007-09-21
- 售價: $2,390
- 貴賓價: 9.5 折 $2,271
- 語言: 英文
- 頁數: 864
- 裝訂: Paperback
- ISBN: 0132354764
- ISBN-13: 9780132354769
-
相關分類:
Java 程式語言
已過版
買這商品的人也買了...
-
$1,176Computer Organization and Design: The Hardware/Software Interface, 3/e(IE) (美國版ISBN:1558606041)
-
$350$277 -
$880$695 -
$150$119 -
$550$435 -
$950Assembly Language for Intel-Based Computers, 5/e (IE) (美國版ISBN:0132383101)
-
$400$360 -
$400$340 -
$350$298 -
$990$891 -
$600$480 -
$540$427 -
$650$514 -
$1,180$932 -
$399Core Java, Volume II -- Advanced Features, 8/e (Paperback)
-
$980$774 -
$450$351 -
$690$587 -
$490$417 -
$740$585 -
$580$458 -
$590$502 -
$520$411 -
$680$578 -
$880$695
商品描述
Description
This revised edition of the classic Core Java™, Volume I–Fundamentals, is the definitive guide to Java for serious programmers who want to put Java to work on real projects.
Fully updated for the new Java SE 6 platform, this no-nonsense tutorial and reliable reference illuminates the most important language and library features with thoroughly tested real-world examples. The example programs have been carefully crafted to be easy to understand as well as useful in practice, so you can rely on them as an outstanding starting point for your own code.
Volume I is designed to quickly bring you up to speed on what’s new in Java SE 6 and to help you make the transition as efficiently as possible, whether you’re upgrading from an earlier version of Java or migrating from another language. The authors concentrate on the fundamental concepts of the Java language, along with the basics of user-interface programming. You’ll find detailed, insightful coverage of
Java fundamentals Object-oriented programming Interfaces and inner classes Reflection and proxies The event listener model- GUI programming with Swing
- Packaging applications
- Exception handling
- Logging and debugging
- Generic programming
- The collections framework
- Concurrency
For detailed coverage of XML processing, networking, databases, internationalization, security, advanced AWT/Swing, and other advanced features, look for the forthcoming eighth edition of Core Java™, Volume II—Advanced Features (ISBN: 978-0-13-235479-0).
Table of Contents
Preface xix
Acknowledgments xxv
Chapter 1: An Introduction to Java 1
Java As a Programming Platform 2
The Java “White Paper” Buzzwords 2
Java Applets and the Internet 7
A Short History of Java 9
Common Misconceptions about Java 11
Chapter 2: The Java Programming Environment 15
Installing the Java Development Kit 16
Choosing a Development Environment 21
Using the Command-Line Tools 22
Using an Integrated Development Environment 25
Running a Graphical Application 28
Building and Running Applets 31
Chapter 3: Fundamental Programming Structures in Java 35
A Simple Java Program 36
Comments 39
Data Types 40
Variables 44
Operators 46
Strings 53
Input and Output 63
Control Flow 71
Big Numbers 88
Arrays 90
Chapter 4: Objects and Classes 105
Introduction to Object-Oriented Programming 106
Using Predefined Classes 111
Defining Your Own Classes 122
Static Fields and Methods 132
Method Parameters 138
Object Construction 144
Packages 15
The Class Path 160
Documentation Comments 162
Class Design Hints 167
Chapter 5: Inheritance 171
Classes, Superclasses, and Subclasses 172
Object: The Cosmic Superclass 192
Generic Array Lists 204
Object Wrappers and Autoboxing 211
Methods with a Variable Number of Parameters 214
Enumeration Classes 215
Reflection 217
Design Hints for Inheritance 238
Chapter 6: Interfaces and Inner Classes 241
Interfaces 242
Object Cloning 249
Interfaces and Callbacks 255
Inner Classes 258
Proxies 275
Chapter 7: Graphics Programming 281
Introducing Swing 282
Creating a Frame 285
Positioning a Frame 288
Displaying Information in a Component 294
Working with 2D Shapes 299
Using Color 307
Using Special Fonts for Text 310
Displaying Images 318
Chapter 8: Event Handling 323
Basics of Event Handling 324
Actions 342
Mouse Events 349
The AWT Event Hierarchy 357
Chapter 9: User Interface Components with Swing 361
Swing and the Model-View-Controller Design Pattern 362
Introduction to Layout Management 368
Text Input 377
Choice Components 385
Menus 406
Sophisticated Layout Management 424
Dialog Boxes 452
Chapter 10: Deploying Applications and Applets 493
JAR Files 494
Java Web Start 501
Applets 516
Storage of Application Preferences 539
Chapter 11: Exceptions, Logging, Assertions, and Debugging 551
Dealing with Errors 552
Catching Exceptions 559
Tips for Using Exceptions 568
Using Assertions 571
Logging 575
Debugging Tips 591
Using a Debugger 607
Chapter 12: Generic Programming 613
Why Generic Programming? 614
Definition of a Simple Generic Class 616
Generic Methods 618
Bounds for Type Variables 619
Generic Code and the Virtual Machine 621
Restrictions and Limitations 626
Inheritance Rules for Generic Types 630
Wildcard Types 632
Reflection and Generics 640
Chapter 13: Collections 649
Collection Interfaces 650
Concrete Collections 658
The Collections Framework 689
Algorithms 700
Legacy Collections 707
Chapter 14: Multithreading 715
What Are Threads? 716
Interrupting Threads 728
Thread States 730
Thread Properties 733
Synchronization 736
Blocking Queues 764
Thread-Safe Collections 771
Callables and Futures 774
Executors 778
Synchronizers 785
Threads and Swing 794
Appendix 809
Index 813
商品描述(中文翻譯)
描述
這本經典的Core Java™,第一卷-基礎的修訂版,是一本針對認真程式設計師的Java權威指南,旨在幫助他們在實際專案中運用Java。
本書已全面更新至新的Java SE 6平台,這本實用的教程和可靠的參考資料,透過經過充分測試的實際範例,闡明了最重要的語言和庫特性。範例程式經過精心設計,易於理解且在實務中有用,因此您可以依賴它們作為您自己程式碼的優秀起點。
第一卷旨在迅速讓您了解Java SE 6中的新功能,並幫助您高效地過渡,無論您是從早期版本的Java升級,還是從其他語言遷移。作者專注於Java語言的基本概念,以及用戶介面程式設計的基礎。您將發現對以下主題的詳細且深刻的涵蓋:
Java基礎
物件導向程式設計
介面和內部類別
反射和代理
事件監聽器模型
- 使用Swing進行GUI程式設計
- 應用程式打包
- 例外處理
- 日誌記錄和除錯
- 泛型程式設計
- 集合框架
- 併發
有關XML處理、網路、資料庫、國際化、安全性、高級AWT/Swing及其他高級功能的詳細內容,請參閱即將出版的第八版Core Java™,第二卷-高級特性(ISBN: 978-0-13-235479-0)。
目錄
前言 xix
致謝 xxv
第一章:Java簡介 1
Java作為程式設計平台 2
Java的「白皮書」流行詞 2
Java Applet與網際網路 7
Java的簡短歷史 9
關於Java的常見誤解 11
第二章:Java程式設計環境 15
安裝Java開發工具包 16
選擇開發環境 21
使用命令行工具 22
使用整合開發環境 25
運行圖形應用程式 28
構建和運行Applet 31
第三章:Java中的基本程式結構 35
一個簡單的Java程式 36
註解 39
資料類型 40
變數 44
運算子 46
字串 53
輸入與輸出 63
控制流程 71
大數 88
陣列 90
第四章:物件與類別 105
物件導向程式設計簡介 106
使用預定義類別 111
定義自己的類別 122
靜態欄位和方法 132
方法參數 138
物件建構 144
包 15
類別路徑 160
文檔註解 162
類別設計提示 167
第五章:繼承 171
類別、超類別和子類別 172
Object:宇宙超類別 192
泛型陣列列表 204
物件包裝器和自動裝箱 211
具有可變數量參數的方法 214
列舉類別 215
反射 217
繼承設計提示 238
第六章:介面和內部類別 241
介面 242
物件克隆 249
介面和回調 255
內部類別 258
代理 275
第七章:圖形程式設計 281
介紹Swing 282
創建一個框架 285
定位框架 288
在組件中顯示資訊 294
處理2D形狀 299
使用顏色 307
使用特殊字型顯示文字 310
顯示圖片 318
第八章:事件處理 323
事件處理基礎 324
動作 342
滑鼠事件 349
AWT事件層次結構 357
第九章:使用Swing的用戶介面元件 361
Swing與模型-視圖-控制器設計模式 362
佈局管理簡介 368
文字輸入 377
選擇元件 385
選單 406
複雜的佈局管理 424
對話框 452
第十章:部署應用程式和Applet 493
JAR檔案 494
Java Web Start 501
Applet 516
應用程式偏好設定的儲存 539
第十一章:例外、日誌、斷言和除錯 551
處理錯誤 552
捕捉例外 559
...