On to Java, 3/e

Patrick Henry Winston, Sundar Narasimhan

  • 出版商: Addison Wesley
  • 出版日期: 2001-06-11
  • 售價: $735
  • 語言: 英文
  • 頁數: 464
  • 裝訂: Paperback
  • ISBN: 0201725932
  • ISBN-13: 9780201725933
  • 相關分類: Java 程式語言
  • 下單後立即進貨 (約5~7天)

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

商品描述

On to Java, Third Edition offers a clear and concise introduction to the Java programming language. In this third edition, the authors increase coverage of advanced material, explaining how to ensure good programming practice using interfaces, build complex systems using the model-view approach to system design, add sophistication to graphical interfaces with complex tables, define new layout managers for special situations, increase program flexibility using factories, package applications into JAR files, enable program interaction via remote method invocation and create network services using servlets.

Written in the same style as the C, C++, and Smalltalk books of the On to series, this carefully designed tutorial is ideal for programmers who need to learn the Java language. To illuminate the key concepts of Java, the authors add various capabilities to a short, yet representative Java program, which demonstrates how Java is used for building both stand-alone programs and Web applets.

Table of Contents

How this Book Teaches you the Java Programming Language.
How To Compile and Run a Simple Program.
How To Declare Variables.
How To Write Arithmetic Expressions.
How To Define Simple Methods.
How To Understand Variable Scope and Extent.
How To Benefit from Procedure Abstraction.
How To Declare Class Variables.
How To Create Class Instances.
How To Define Instance Methods.
How To Define Constructors.
How To Define Getter and Setter Methods.
How To Benefit from Data Abstraction.
How To Define Classes that Inherit Instance Variables and Methods.
How To Enforce Abstraction Using Protected and Private Variables and Methods.
How To Write Constructors that Call other Constructors.
How To Write Methods that Call other Methods.
How To Design Classes and Class Heirarchies.
How To Enforce Requirements Using Abstract Classes and Abstract Methods.
How To Enforce Requirements and to Document Programs Using Interfaces.
How To Perform Tests Using Predicates.
How To Write Conditional Statements.
How To Combine Boolean Expressions.
How To Write Iteration Statements.
How To Write Recursive Methods.
How To Write Multiway Conditional Statements.
How To Work with File Input Streams.
How To Create and Access Arrays.
How To Move Arrays into and out of Methods.
How To Store Data in Expandable Vectors.
How To Work with Characters and Strings.
How To Catch Exceptions.
How To Work with Output File Streams.
How To Write and Read Values Using the Serializable Interface.
How To Modularize Programs using Compilation Units and Packages.
How To Combine Private Variables and Methods with Packages.
How To Create Windows and to Activate Listeners.
How To Define Inner Classes and to Structure Applications.
How To Draw Lines in Windows.
How To Write Text in Windows.
How To Use the Model - View Approach to GUI Design.
How To Define Standalone Observers and Listeners..
How To Define Applets.
How To Access Applets from Web Browsers.
How To Use Resource Locators.
How To Use Choice Lists To Select Instances.
How To Bring Images into Applets.
How To Use Threads To Implement Dynamic Applets.
How To Create Forms and to Fire Your Own Events.
How To Display Menus and File Dialog Windows.
How To Develop Your Own Layout Manager.
How To Implement Dynamic Tables.
How To Activate Remote Computations.
How To Collect Information Using Servlets.
How To Construct Jar Files for Program Distribution.
Appendix A: Operator Precedence.
Appendix B: The Meter Canvas.
Appendix C: Applet Parameters.
Appendix D: The Swing Classes.
Appendix E: Layout Managers.
Appendix F: The Graphics2d Package.
Colophon.
Software.
Books.

商品描述(中文翻譯)

《On to Java, 第三版》提供了對Java程式語言的清晰而簡潔的介紹。在這第三版中,作者增加了對高級內容的涵蓋,解釋了如何使用接口確保良好的編程實踐,使用模型-視圖方法來設計複雜系統,使用複雜表格為圖形界面增加複雜性,為特殊情況定義新的佈局管理器,使用工廠增加程序的靈活性,將應用程序打包成JAR文件,通過遠程方法調用實現程序交互,並使用servlet創建網絡服務。

這本教程以《On to》系列的C、C++和Smalltalk書籍相同的風格撰寫,是那些需要學習Java語言的程序員的理想選擇。為了闡明Java的關鍵概念,作者在一個短小但具有代表性的Java程序中添加了各種功能,展示了Java如何用於構建獨立程序和Web applet。

《目錄》
本書如何教授Java編程語言。
如何編譯和運行簡單的程序。
如何聲明變量。
如何編寫算術表達式。
如何定義簡單的方法。
如何理解變量的作用域和範圍。
如何從過程抽象中受益。
如何聲明類變量。
如何創建類實例。
如何定義實例方法。
如何定義構造函數。
如何定義Getter和Setter方法。
如何從數據抽象中受益。
如何定義繼承實例變量和方法的類。
如何使用受保護和私有變量和方法實現抽象。
如何編寫調用其他構造函數的構造函數。
如何編寫調用其他方法的方法。
如何設計類和類層次結構。
如何使用抽象類和抽象方法實現要求。
如何使用接口實現要求並文檔化程序。
如何使用謂詞進行測試。
如何編寫條件語句。
如何結合布爾表達式。
如何編寫迭代語句。
如何編寫遞歸方法。
如何編寫多路條件語句。
如何使用文件輸入流。
如何創建和訪問數組。
如何將數組移入和移出方法。
如何在可擴展向量中存儲數據。
如何處理字符和字符串。
如何捕獲異常。
如何使用輸出文件流。
如何使用可序列化接口編寫和讀取值。
如何使用編譯單元和包模塊化程序。
如何將私有變量和方法與包結合。
如何創建窗口並激活監聽器。
如何定義內部類並結構化應用程序。
如何在窗口中繪製線條。
如何在窗口中編寫文本。
如何使用模型-視圖方法進行GUI設計。
如何定義獨立觀察者和監聽器。
如何定義applet。
如何從Web瀏覽器訪問applet。
如何使用資源定位器。
如何使用選擇列表選擇實例。
如何將圖像引入applet。
如何使用線程實現動態applet。
如何創建表單並觸發自己的事件。
如何顯示菜單和文件對話框窗口。
如何開發自己的佈局管理器。
如何實現動態表格。
如何激活遠程計算。
如何使用servlet收集信息。
如何構建Jar文件進行程序分發。
附錄A:運算符優先級。
附錄B:米計畫布。
附錄C:applet參數。
附錄D:Swing類。
附錄E:佈局管理器。
附錄F:Graphics2d套件。