Part I:Introducing Java 3
Chapter 1——Introduction 3
What Is Java? 3
Key Benefits of Java 6
An Example Program 9
Chapter 2——Java Syntax from the Ground Up 19
The Unicode Character Set 20
Comments 20
Identifiers and Reserved Words 21
Primitive Data Types 22
Expressions and Operators 29
Statements 43
Methods 64
Classes and Objects 66
Array Types 69
Reference Types 74
Packages and the Java Namespace 81
Java File Structure 83
Defining and Running Java Programs 84
Differences Between C and Java 85
Chapter 3——Object-Oriented Programming inJava 88
The Members of a Class 88
Creating and Initializing Objects 94
Destroying and Finalizing Objects 98
Subclasses and Inheritance 101
Data Hiding and Encapsulation 110
Abstract Classes and Methods 115
Interfaces 117
Inner Class Overview 122
Static Member Classes 124
Member Classes 125
Local Classes 129
Anonymous Classes 133
How Inner Classes Work 136
Modifier Summary 138
C++ Features Not Found in Java 140
Chapter 4——The Java Platform 142
Java Platform Overview 142
Strings and Characters 145
Numbers and Math 151
Dates and Times 154
Arrays 155
Collections 156
Types, Reflection, and Dynamic Loading 158
Threads 160
Files and Directories 165
Input and Output Streams 166
Networking 171
Properties and Preferences 176
Logging 178
The New I/O API 179
XML 191
Processes 196
Security 196
Cryptography 199
Chapter 5——Java Security 202
Security Risks 202
Java VM Security and Class File Verification 203
Authentication and Cryptography 204
Access Control 204
Security for Everyone 207
Permission Classes 209
Chapter 6——JavaBeans 211
Bean Basics 212
Java Beans Conventions 214
Bean Contexts and Services 221
Chapter 7——Java Programming and Documentation Conventions 222
Naming and Capitalization Conventions 222
Portability Conventions and Pure Java Rules 223
Java Documentation Comments 225
Chapter 8——Java Development Tools 234
appletviewer 234
extcheck 238
jar 238
jarsigner 241
java 242
javac 248
javadoc 251
javah 257
javap 259
jdb 260
keytool 265
native2ascii 268
policytool 269
serialver 270
Part Ⅱ:API Quick Reference 273
How to Use This Quick Reference 273
Finding a Quick-Reference Entry 273
Reading a Quick-Reference Entry 274
Chapter 9——java. beans and java. beans. beancontext 282
Chapter 10——java. io 323
Chapter 11——java. lang, java. lang. ref, and java. lang. reflect 374
Chapter 12——java. math 444
Chapter 13——java. net 448
Chapter 14——java. nio and Subpackages 481
Chapter 15——java. security and Subpackages 533
Chapter 16——java. text 609
Chapter 17——java. util and Subpackages 635
Chapter 18——javax. crypto and Subpackages 738
Chapter 19——javax. net and javax. net. ssl 762
Chapter 20——javax. security. auth and Subpackages 782
Chapter 21——javax. xml. parsers, java. xml. transform,and Subpackages 805
Chapter 22——org. ietf. jgss 826
Chapter 23—org. w3c. dom 833
Chapter 24—org. xml. sax, org. xml. sax. ext,and org. xml. sax. helpers 848
Chapter 25—Class, Method, and Field Index 871
Index 919