分享
 
 
 

Java核心技术 卷I:基础知识(第8版)(英文版)

Java核心技术 卷I:基础知识(第8版)(英文版)  点此进入淘宝搜索页搜索
  特别声明:本站仅为商品信息简介,并不出售商品,您可点击文中链接进入淘宝网搜索页搜索该商品,有任何问题请与具体淘宝商家联系。
  參考價格: 点此进入淘宝搜索页搜索
  分類: 图书,计算机/网络,程序设计,Java Java Script J2EE,

作者: [美]Cay S.HorstmannGary Cornell 著

出 版 社: 人民邮电出版社

出版时间: 2008-11-1字数: 1149000版次: 1页数: 836印刷时间: 2008/11/01开本: 16开印次: 1纸张: 胶版纸I S B N : 9787115188335包装: 平装编辑推荐

连续12年畅销世界;Sun公司核心技术图书;Java实际项目应用的权威指导书;全部示例代码均针对J2SE 6进行了全面更新。

内容简介

本书第1版出版以来,一直备受广大Java程序设计人员的青睐,畅销不衰,是Java经典书籍。第8版针对Java SE 6平台进行了全面更新,囊括了Java 2平台、标准版(J2SE)的全部基础知识,提供了大量完整且具有实际意义的应用实例,详细介绍了Java语言基础知识、面向对象程序设计、接口与内部类、事件监听器模型、Swing图形用户界面程序设计、打包应用程序、异常处理、登录与调试、泛型程序设计、集合框架、多线程等内容。

书中示例程序经过精心设计,不但具有实用价值,而且易于阅读理解,可以作为初学者自己编写程序的良好开端,也能够帮助程序员快速地了解Java SE 6的新特性,或迅速从其他语言转向Java语言。

目录

Contents

1AN INTRODUCTION TO JAVA

Java As a Programming Platform

The Java “White Paper” Buzzwords

Simple

Object Oriented

Network-Savvy

Robust

Secure

Architecture Neutral

Portable

Interpreted

High Performance

Multithreaded

Dynamic

Java Applets and the Internet

A Short History of Java

Common Misconceptions about Java

2THE 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

3FUNDAMENTAL 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

4OBJECTS 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

5INHERITANCE

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

6INTERFACES AND INNER CLASSES

Interfaces

Properties of Interfaces

Interfaces and Abstract Classes

Object Cloning

Interfaces and Callbacks

Inner Classes

Use of an Inner Class to Access Object State

Special Syntax Rules for Inner Classes

Are Inner Classes Useful? Actually Necessary? Secure?

Local Inner Classes

Accessing final Variables from Outer Methods

Anonymous Inner Classes

Static Inner Classes

Proxies

Properties of Proxy Classes

7GRAPHICS PROGRAMMING

Introducing Swing

Creating a Frame

Positioning a Frame

Frame Properties

Determining a Good Frame Size

Displaying Information in a Component

Working with D Shapes

Using Color

Using Special Fonts for Text

Displaying Images

8EVENT HANDLING

Basics of Event Handling

Example: Handling a Button Click

Becoming Comfortable with Inner Classes

Creating Listeners Containing a Single Method Call

Example: Changing the Look and Feel

Adapter Classes

Actions

Mouse Events

The AWT Event Hierarchy

Semantic and Low-Level Events

9USER INTERFACE COMPONENTS WITH SWING

Swing and the Model-View-Controller Design Pattern

Design Patterns

The Model-View-Controller Pattern

A Model-View-Controller Analysis of Swing Buttons

Introduction to Layout Management

Border Layout

Grid Layout

Text Input

Text Fields

Labels and Labeling Components

Password Fields

Text Areas

Scroll Panes

Choice Components

Checkboxes

Radio Buttons

Borders

Combo Boxes

Sliders

Menus

Menu Building

Icons in Menu Items

Checkbox and Radio Button Menu Items

Pop-Up Menus

Keyboard Mnemonics and Accelerators

Enabling and Disabling Menu Items

Toolbars

Tooltips

Sophisticated Layout Management

The Grid Bag Layout

Group Layout

Using No Layout Manager

Custom Layout Managers

Traversal Order

Dialog Boxes

Option Dialogs

Creating Dialogs

Data Exchange

File Dialogs

Color Choosers

10DEPLOYING APPLICATIONS AND APPLETS

JAR Files

The Manifest

Executable JAR Files

Resources

Sealing

Java Web Start

The Sandbox

Signed Code

The JNLP API

Applets

A Simple Applet

The Applet HTML Tag and Its Attributes

The object Tag

Use of Parameters to Pass Information to Applets

Accessing Image and Audio Files

The Applet Context

Storage of Application Preferences

Property Maps

The Preferences API

11EXCEPTIONS, LOGGING, ASSERTIONS, AND DEBUGGING

Dealing with Errors

The Classification of Exceptions

Declaring Checked Exceptions

How to Throw an Exception

Creating Exception Classes

Catching Exceptions

Catching Multiple Exceptions

Rethrowing and Chaining Exceptions

The finally Clause

Analyzing Stack Trace Elements

Tips for Using Exceptions

Using Assertions

Assertion Enabling and Disabling

Using Assertions for Parameter Checking

Using Assertions for Documenting Assumptions

Logging

Basic Logging

Advanced Logging

Changing the Log Manager Configuration

Localization

Handlers

Filters

Formatters

A Logging Recipe

Debugging Tips

Using a Console Window

Tracing AWT Events

Letting the AWT Robot Do the Work

Using a Debugger

12GENERIC PROGRAMMING

Why Generic Programming?

Who Wants to Be a Generic Programmer?

Definition of a Simple Generic Class

Generic Methods

Bounds for Type Variables

Generic Code and the Virtual Machine

Translating Generic Expressions

Translating Generic Methods

Calling Legacy Code

Restrictions and Limitations

Type Parameters Cannot Be Instantiated with Primitive Types

Runtime Type Inquiry Only Works with Raw Types

You Cannot Throw or Catch Instances of a Generic Class

Arrays of Parameterized Types Are Not Legal

You Cannot Instantiate Type Variables

Type Variables Are Not Valid in Static Contexts of Generic Classes

Beware of Clashes After Erasure

Inheritance Rules for Generic Types

Wildcard Types

Supertype Bounds for Wildcards

Unbounded Wildcards

Wildcard Capture

Reflection and Generics

Using ClassParameters for Type Matching

Generic Type Information in the Virtual Machine

13COLLECTIONS

Collection Interfaces

Separating Collection Interfaces and Implementation

Collection and Iterator Interfaces in the Java Library

Concrete Collections

Linked Lists

Array Lists

Hash Sets

Tree Sets

Object Comparison

Queues and Deques

Priority Queues

Maps

Specialized Set and Map Classes

The Collections Framework

Views and Wrappers

Bulk Operations

Converting between Collections and Arrays

Algorithms

Sorting and Shuffling

Binary Search

Simple Algorithms

Writing Your Own Algorithms

Legacy Collections

The Hashtable Class

Enumerations

Property Maps

Stacks

Bit Sets

14MULTITHREADING

What Are Threads?

Using Threads to Give Other Tasks a Chance

Interrupting Threads

Thread States

New Threads

Runnable Threads

Blocked and Waiting Threads

Terminated Threads

Thread Properties

Thread Priorities

Daemon Threads

Handlers for Uncaught Exceptions

Synchronization

An Example of a Race Condition

The Race Condition Explained

Lock Objects

Condition Objects

The synchronized Keyword

Synchronized Blocks

The Monitor Concept

Volatile Fields

Deadlocks

Lock Testing and Timeouts

Read/Write Locks

Why the stop and suspend Methods Are Deprecated

Blocking Queues

Thread-Safe Collections

Efficient Maps, Sets, and Queues

Copy on Write Arrays

Older Thread-Safe Collections

Callables and Futures

Executors

Thread Pools

Scheduled Execution

Controlling Groups of Tasks

Synchronizers

Semaphores

Countdown Latches

Barriers

Exchangers

Synchronous Queues

Example: Pausing and Resuming an Animation

Threads and Swing

Running Time-Consuming Tasks

Using the Swing Worker

The Single-Thread Rule

Appendix

Index

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
>>返回首頁<<
 
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有