Java语言导学(英文版·第3版)
作者 : (美)Mary Campione,Kathy Walrath,Alison Huml
丛书名 : 经典原版书库
出版日期 : 2004-05-08
ISBN : 7-111-14229-2
定价 : 49.00元
教辅资源下载
扩展信息
语种 : 英文
页数 : 569
开本 : 16开
原书名 : The Java Tutorial: A Short Course on the Basics
原出版社: Sun Microsystems,Inc.
属性分类: 教材
包含CD :
绝版 :
图书简介

本书反映了Java技术的最新发展,针对Java2SDK 1.3平台进行了更新,同时也适用于以前的1.2和1.1版本。书中清晰地解释了对象、类以及数据结构等基本概念,介绍了面向对象编程、applet构造。用户界面设计、异常、I/O和线程等主题。为帮助初学者避免许多常见错误,附录A给出了编程问题及其解决方案。每章后面的“小结”是本版新增的。另外,还新增了“问题与练习”小节,有助于读者实践所学内容。 Mary Campione是Sun公司的高级技术作家,自1995年开始从事关于Java平台的写作。除本书外,她还与人合著有《PostScript by Example》一书。 Kathy Walrath是Sun公司Swing组的高级技术作家。在获得了加州大学伯克利分校的电子工程与计算机科学学士学位后,Kathy编撰了关于UNIX,Mach和NEXTSTEP的大量著作。自1993年开始,Kathy专职从事Java平台规范和入门指南的写作。 Alison Huml是Sun公司的技术作家,获得了加州大学伯克利分校的计算机科学硕士学位。

图书特色

作者简介

(美)Mary Campione,Kathy Walrath,Alison Huml:Mary Campione: Sun Microsystems公司的技术专家,自1995年开始从事关于Java平台的写作,而作为专业技术作家和程序员则已经有14年经验。
Kathy Walrath: Sun Microsystems公司Swing技术组的技术专家。在获得了加州大学伯克利分校的电子工程与计算机科学学士学位以后,他编撰了关于UNIX、Mach和NEXTSTEP的大量著作。从1993年开始,专职从事Java平台规范和指南的写作。
Alison Huml: Sun Microsystems公司的技术专家。加州大学伯克利分校的计算机硕士。

图书目录

CHAPTER 1 Getting Started 1
About the Java Technology 2
How Will Java Technology Change My Life 7
First Steps (Win32) 8
First Steps (UNIX/Linux) 16
First Steps (MacOS) 24
A Closer Look at HelloWorld 32
Questions and Exercises 41
Code Samples 43
CHAPTER 2 Object-Oriented Programming Concepts 45
What Is an Object 46
What Is a Message 48
What Is a Class 49
What Is Inheritance 52
What Is an Interface 54
How Do These Concepts Translate into Code 55
Summary 61
Questions and Exercises 62
Code Samples 63
CHAPTER 3 Language Basics 65
Variables 67
Operators 76
Expressions, Statements, and Blocks 94
Control Flow Statements 99
Code Samples 117
vi CONTENTS
CHAPTER 4 Object Basics and Simple Data Objects 119
The Life Cycle of an Object 120
Characters and Strings 132
Numbers 149
Arrays 165
Code Samples 174
CHAPTER 5 Classes and Inheritance 177
Creating Classes 178
Managing Inheritance 204
Implementing Nested Classes 218
Code Samples 224
CHAPTER 6 Interfaces and Packages 227
Creating and Using Interfaces 228
Creating and Using Packages 234
Code Samples 242
CHAPTER 7 Handling Errors Using Exceptions 243
What Is an Exception 244
The Catch or Specify Requirement 245
Catching and Handling Exceptions 246
Specifying the Exceptions Thrown by a Method 255
How to Throw Exceptions 255
Runtime Exceptions—The Controversy 260
Advantages of Exceptions 260
Summary of Exceptions 265
Questions and Exercises 266
Code Samples 268
CHAPTER 8 Threads: Doing Two or More Tasks at Once 269
What Is a Thread 271
Using the Timer and TimerTask Classes 273
Customizing a Thread’s run Method 277
The Life Cycle of a Thread 281
Understanding Thread Priority 286
Synchronizing Threads 291
Grouping Threads 301
Summary of Threads 307
Questions and Exercises 309
Code Samples
CONTENTS vii
CHAPTER 9 I/O: Reading and Writing
Overview of I/O Streams
Using the Streams
Object Serialization
Working with Random Access Files
And the Rest
Summary of Reading and Writing
Questions and Exercises
Code Samples
CHAPTER 10 User Interfaces That Swing
Overview of the Swing API
Your First Swing Program
Example Two: SwingApplication
Example Three: CelsiusConverter
Example Four: LunarPhases
Example Five: VoteDialog
Layout Management
Threads and Swing
Visual Index to Swing Components
Summary
Questions and Exercises
Code Samples
APPENDIX A Common Problems and Their Solutions
Getting Started Problems
General Programming Problems
Applet Problems
User Interface Problems
APPENDIX B Internet-Ready Applets
Overview of Applets
AWT Components
Taking Advantage of the Applet API
Practical Considerations of Writing Applets
Finishing an Applet
Swing-Based Applets
Code Samples
viii CONTENTS
APPENDIX C Collections
Introduction
Interfaces
Implementations
Algorithms
Custom Implementations
Interoperability
APPENDIX D Deprecated Thread Methods
Why Is Thread.stop Deprecated
Why Are Thread.suspend and Thread.resume Deprecated
What about Thread.destroy
Why Is Runtime.runFinalizersOnExit Deprecated
APPENDIX E Reference
Java Programming Language Keywords
Operator Precedence
The <APPLET> Tag
POSIX Conventions for Command Line Arguments
Integrated Development Environments
Path Help
Index 

教学资源推荐
作者: 管建和
作者: 皮德常
作者: [美] 罗伯特·塞奇威克(Robert Sedgewick), 凯文·韦恩(Kevin Wayne), 罗伯特·唐德罗(Robert Dondero)著
参考读物推荐
作者: (美)F.Scott Barker
作者: 魏新宇 王洪涛 陈耿 著
作者: 张良均 谭立云 刘名军 江建明 著
作者: 王慧 王浩 等编著