java核⼼技术英⽂_Java核⼼技术卷I:基础知识(第8版)
(英⽂影印版)
Contents
1 AN INTRODUCTION TO JAVA
Java As a Programming Platform
The Java “White Paper” Buzzwords
Simple
Object Oriented
Network-Savvy
thread技术Robust
Secure
Architecture Neutral
Portable
Interpreted
High Performance
Multithreaded
Dynamic
Java Applets and the Internet
A Short History of Java
Common Misconceptions about Java
2 THE JAVA PROGRAMMING ENVIRONMENT
Installing the Java Development Kit
Downloading the JDK
Setting the Execution Path
Installing the Library Source and Documentation
Installing the Core Java Program Examples
Navigating the Java Directories
Choosing a Development Environment
Using the Command-Line Tools
Troubleshooting Hints
Using an Integrated Development Environment
Locating Compilation Errors
Running a Graphical Application
Building and Running Applets
3 FUNDAMENTAL PROGRAMMING STRUCTURES IN JAVA A Simple Java Program
Comments
Data Types
Integer Types
Floating-Point Types
The char Type
The boolean Type
Variables
Initializing Variables
Constants
Operators
Increment and Decrement Operators
Relational and boolean Operators
Bitwise Operators
Mathematical Functions and Constants
Conversions between Numeric Types
Casts
Parentheses and Operator Hierarchy
Enumerated Types
Strings
Substrings
Concatenation
Strings Are Immutable
Testing Strings for Equality
Code Points and Code Units
The String API
Reading the On-Line API Documentation
Building Strings
Input and Output
Reading Input
Formatting Output
File Input and Output
Control Flow
Block Scope
Conditional Statements
Loops
Determinate Loops
Multiple Selections——The switch Statement Statements That Break Control Flow
Big Numbers
Arrays
The “for each” Loop
Array Initializers and Anonymous Arrays
Array Copying
Command-Line Parameters
Array Sorting
Multidimensional Arrays
Ragged Arrays
4 OBJECTS AND CLASSES
Introduction to Object-Oriented Programming Classes
Objects
Identifying Classes
Relationships between Classes
Using Predefined Classes
Objects and Object Variables
The GregorianCalendar Class of the Java Library Mutator and Accessor Methods
Defining Your Own Classes
An Employee Class
Use of Multiple Source Files
Dissecting the Employee Class
First Steps with Constructors
Implicit and Explicit Parameters
Benefits of Encapsulation
Class-Based Access Privileges
Private Methods
Final Instance Fields
Static Fields and Methods
Static Fields
Static Constants
Static Methods
Factory Methods
The main Method
Method Parameters
Object Construction
Overloading
Default Field Initialization
Default Constructors
Explicit Field Initialization
Parameter Names
Calling Another Constructor
Initialization Blocks
Object Destruction and the finalize Method Packages
Class Importation
Static Imports
Addition of a Class into a Package Package Scope
The Class Path
Setting the Class Path
Documentation Comments
Comment Insertion
Class Comments
Method Comments
Field Comments
General Comments
Package and Overview Comments Comment Extraction
Class Design Hints
5 INHERITANCE
Classes, Superclasses, and Subclasses
Inheritance Hierarchies
Polymorphism
Dynamic Binding
Preventing Inheritance: Final Classes and Methods Casting
Abstract Classes
Protected Access
Object: The Cosmic Superclass
The equals Method
Equality Testing and Inheritance
The hashCode Method
The toString Method
Generic Array Lists
Accessing Array List Elements
Compatibility between Typed and Raw Array Lists Object Wrappers and Autoboxing
Methods with a Variable Number of Parameters Enumeration Classes
Reflection
The Class Class
A Primer on Catching Exceptions
Using Reflection to Analyze the Capabilities of Classes Using Reflection to Analyze Objects at Runtime
Using Reflection to Write Generic Array Code
Method Pointers!
Design Hints for Inheritance
6 INTERFACES AND INNER CLASSES
Interfaces
Properties of Interfaces
Interfaces and Abstract Classes
Object Cloning
Interfaces and Callbacks

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。