産品特色
內容簡介
《Java SE8 程序設計(第3版)英文版》沿用瞭Deitel特色的“程序實況解說”,深入探討瞭Java編程語言和JavaAPI。通過完整的語法著色、代碼高亮、逐行代碼的演練和程序輸齣,全麵地介紹瞭測試程序的概念。《Java SE8 程序設計(第3版)英文版》中首先介紹瞭使用早期Java類和對象的方法,然後迅速轉移到更高級的主題,包括GUI、圖形、異常處理、Lambda錶達式、數據流、功能接口、對象序列化、並發性、泛型、泛型集閤、JDBC等。《Java SE8 程序設計(第3版)英文版》包含數百個完整的Java可運行示例、數韆行成熟的Java代碼,總結齣許多程序開發技巧,幫助你建立強大的應用程序。
《Java SE8 程序設計(第3版)英文版》適閤具有一定高級語言編程背景的程序員閱讀。
作者簡介
Paul Deitel,Deitel & Associates有限公司的CEO兼CTO,畢業於麻省理工學院,主修信息技術。他獲得瞭Java認證程序員和Java認證開發員稱號,並且是一名Oracle Java冠軍程序員。在Deitel & Associate有限公司工作的過程中,他已經為世界各地的客戶提供瞭數百節編程課程,這些客戶包括思科、IBM、西門子、Sun Microsystems、戴爾、Fidelity、肯尼迪航天中心、美國國傢強風暴實驗室、白沙導彈試驗場、Rogue Wave Software、波音公司、SunGard Higher Education、北電網絡公司、彪馬、iRobot、Invensys等。他和本書的閤著者Harvey M. Deitel博士是全球暢銷編程語言教材、專業書籍和視頻的作者。
Harvey Deitel博士,Deitel & Associates有限公司的董事長和首席戰略官,在計算機領域擁有50多年的經驗。Deitel博士獲得瞭麻省理工學院電子工程專業的學士和碩士學位,並獲得瞭波士頓大學的數學博士學位。他擁有豐富的大學教學經驗,在1991年與兒子Paul Deitel創辦Deitel & Associates有限公司之前,他是波士頓大學計算機科學係的主任並獲得瞭終身任職權。Deitel的齣版物獲得瞭國際上的認可,並被翻譯為日語、德語、俄語、西班牙語、法語、波蘭語、意大利語、簡體中文、繁體中文、韓語、葡萄牙語、希臘語、烏爾都語和土耳其語齣版。Deitel博士為很多大公司、學術研究機構、政府機關和軍方提供瞭數百場專業編程講座。
目錄
推薦序
前言
閱讀本書之前的準備
1 Introduction to Java and Test-Driving a Java Application
1.1 Introduction
1.2 Object Technology Concepts
1.2.1 The Automobile as an Object
1.2.2 Methods and Classes
1.2.3 Instantiation
1.2.4 Reuse
1.2.5 Messages and Method Calls
1.2.6 Attributes and Instance Variables
1.2.7 Encapsulation and Information Hiding
1.2.8 Inheritance
1.2.9 Interfaces
1.2.10 Object-Oriented Analysis and Design (OOAD)
1.2.11 The UML (Unified Modeling Language)
1.3 Open Source Software
1.4 Java
1.5 A Typical Java Development Environment
1.6 Test-Driving a Java Application
1.7 Software Technologies
1.8 Keeping Up-to-Date with Information Technologies
2 Introduction to Java Applications; Input/Output and Operators
2.1 Introduction
2.2 Your First Program in Java: Printing a Line of Text
2.3 Modifying Your First Java Program
2.4 Displaying Text with printf
2.5 Another Application: Adding Integers
2.6 Arithmetic
2.7 Decision Making: Equality and Relational Operators
2.8 Wrap-Up
3 Introduction to Classes, Objects, Methods and Strings
3.1 Introduction
3.2 Instance Variables, set Methods and get Methods
3.2.1 Account Class with an Instance Variable, a set Method and a get Method
3.2.2 AccountTest Class That Creates and Uses an Object of Class Account
3.2.3 Compiling and Executing an App with Multiple Classes
3.2.4 Account UML Class Diagram with an Instance Variable and set and get Methods
3.2.5 Additional Notes on Class AccountTest
3.2.6 Software Engineering with private Instance Variables and public set and get Methods
3.3 Primitive Types vs. Reference Types
3.4 Account Class: Initializing Objects with Constructors
3.4.1 Declaring an Account Constructor for Custom Object Initialization
3.4.2 Class AccountTest : Initializing Account Objects When They’re Created
3.5 Account Class with a Balance; Floating-Point Numbers
3.5.1 Account Class with a balance Instance Variable of Type double
3.5.2 AccountTest Class to Use Class Account
3.6 Wrap-Up
4 Control Statements: Part 1; Assignment, ++ and -- Operators
4.1 Introduction
4.2 Control Structures
4.3 if Single-Selection Statement
4.4 if … else Double-Selection Statement
4.5 Student Class: Nested if … else Statements
4.6 while Repetition Statement
4.7 Counter-Controlled Repetition
4.8 Sentinel-Controlled Repetition
4.9 Nested Control Statements
4.10 Compound Assignment Operators
4.11 Increment and Decrement Operators
4.12 Primitive Types
4.13 Wrap-Up
5 Control Statements: Part 2; Logical Operators
5.1 Introduction
5.2 Essentials of Counter-Controlled Repetition
5.3 for Repetition Statement
5.4 Examples Using the for Statement
5.5 do … while Repetition Statement
5.6 switch Multiple-Selection Statement
5.7 Class AutoPolicy Case Study: String s in switch Statements
5.8 break and continue Statements
5.9 Logical Operators
5.10 Wrap-Up
6 Methods: A Deeper Look
6.1 Introduction
6.2 Program Modules in Java
6.3 static Methods, static Fields and Class Math
6.4 Declaring Methods with Multiple Parameters
6.5 Notes on Declaring and Using Methods
6.6 Argument Promotion and Casting
6.7 Java API Packages
6.8 Case Study: Secure Random-Number Generation
6.9 Case Study: A Game of Chance; Introducing enum Types
6.10 Scope of Declarations
6.11 Method Overloading
6.12 Wrap-Up
7 Arrays and ArrayLists
7.1 Introduction
7.2 Arrays
7.3 Declaring and Creating Arrays
7.4 Examples Using Arrays
7.4.1 Creating and Initializing an Array
7.4.2 Using an Array Initializer
7.4.3 Calculating the Values to Store in an Array
7.4.4 Summing the Elements of an Array
7.4.5 Using Bar Charts to Display Array Data Graphically
7.4.6 Using the Elements of an Array as Counters
7.4.7 Using Arrays to Analyze Survey Results
7.5 Exception Handling: Processing the Incorrect Response
7.5.1 The try Statement
7.5.2 Executing the catch Block
7.5.3 toString Method of the Exception Parameter
7.6 Case Study: Card Shuffling and Dealing Simulation
7.7 Enhanced for Statement
7.8 Passing Arrays to Methods
7.9 Pass-By-Value vs. Pass-By-Reference
7.10 Case Study: Class GradeBook Using an Array to Store Grades
7.11 Multidimensional Arrays
7.12 Case Study: Class GradeBook Using a Two-Dimensional Array
7.13 Variable-Length Argument Lists
7.14 Using Command-Line Arguments
7.15 Class Arrays
7.16 Introduction to Collections and Class ArrayList
7.17 Wrap-Up
8 Classes and Objects: A Deeper Look
8.1 Introduction
8.2 Time Class Case Study
8.3 Controlling Access to Members
8.4 Referring to the Current Object’s Members with the this Reference
8.5 Time Class Case Study: Overloaded Constructors
8.6 Default and No-Argument Constructors
8.7 Notes on Set and Get Methods
8.8 Composition
8.9 enum Types
8.10 Garbage Collection
8.11 static Class Members
8.12 static Import
8.13 final Instance Variables
8.14 Time Class Case Study: Creating Packages
8.15 Package Access
8.16 Using BigDecimal for Precise Monetary Calculations
8.17 Wrap-Up
9 Object-Oriented Programming: Inheritance
9.1 Introduction
9.2 Superclasses and Subclasses
9.3 protected Members
9.4 Relationship Between Superclasses and Subclasses
9.4.1 Creating and Using a CommissionEmployee Class
9.4.2 Creating and Using a BasePlusCommissionEmployee Class
9.4.3 Creating a CommissionEmployee ? BasePlusCommissionEmployee Inheritance Hierarchy
9.4.4 CommissionEmployee ? BasePlusCommissionEmployee Inheritance Hierarchy Using protected Instance Variables
9.4.5 CommissionEmployee ? BasePlusCommissionEmployee Inheritance Hierarchy Using private Instance Variables
9.5 Constructors in Subclasses
9.6 Class Object
9.7 Wrap-Up
10 Object-Oriented Programming: Polymorphism and Interfaces
10.1 Introduction
10.2 Polymorphism Examples
10.3 Demonstrating Polymorphic Behavior
10.4 Abstract Classes and Methods
10.5 Case Study: Payroll System Using Polymorphism
10.5.1 Abstract Superclass Employee
10.5.2 Concrete Subclass SalariedEmployee
10.5.3 Concrete Subclass HourlyEmployee
10.5.4 Concrete Subclass CommissionEmployee
10.5.5 Indirect Concrete Subclass BasePlusCommissionEmployee
10.5.6 Polymorphic Processing, Operator instanceof and Downcasting
10.6 Allowed Assignments Between Superclass and Subclass Variables
10.7 final Methods and Classes
10.8 A Deeper Explanation of Issues with Calling Methods from Constructors
10.9 Creating and Using Interfaces
10.9.1 Developing a Payable Hierarchy
10.9.2 Interface Payable
10.9.3 Class Invoice
10.9.4 Modifying Class Employee to Implement Interface Payable
10.9.5 Modifying Class SalariedEmployee for Use in the Payable Hierarchy
10.9.6 Using Interface Payable to Process Invoice s and Employees Polymorphically
10.9.7 Some Common Interfaces of the Java API
10.10 Java SE 8 Interface Enhancements
10.10.1 default Interface Methods
10.10.2 static Interface Methods
10.10.3 Functional Interfaces
10.11 Wrap-Up
11 Exception Handling: A Deeper Look
11.1 Introduction
11.2 Example: Divide by Zero without Exception Handling
11.3 Exception Handling: ArithmeticExceptions and InputMismatchExceptions
11.4 When to Use Exception Handling
11.5 Java Exception Hierarchy
11.6 finally Block
11.7 Stack Unwinding and Obtaining Information from an Exception Object 322
11.8 Chained Excepti
Java SE8 程序設計(第3版 英文版) 下載 mobi epub pdf txt 電子書 格式