An indispensible companion to Core Java 2 Volume I, Seventh Edition, thisbook delivers the real-world guidance Java programmers need to solve even themost challenging programming problems. While many new editions tack onnew material, Horstmann actually rewrites all exisiting chapters and reworks allof the existing programs and examples featured in the book. The authorsindentify...
An indispensible companion to Core Java 2 Volume I, Seventh Edition, thisbook delivers the real-world guidance Java programmers need to solve even themost challenging programming problems. While many new editions tack onnew material, Horstmann actually rewrites all exisiting chapters and reworks allof the existing programs and examples featured in the book. The authorsindentify the problems experienced Java developers encounter most often anddelivers insightful, expert-level guidance for addressing them. The book alsoincludes all-new chapters on key features of J2SE 5.0 (formerly J2SE 1.5 or"Tiger") including generics and multi-threading. It has been three years sincethe last edition of Core Java Volume II and Java programmers have beenanxiously awaiting the arrival of the updated revision of one of their favoritebooks!
Gary Cornell曾经撰写或与人合著过20多本计算机畅销书。他是Brown大学的博士,在IBM的Watson实验室做过访问科学家,曾任康沓狄格大学的教授。
目录
· · · · · ·
Copyright
List of Code Examples
Preface
To the Reader
About This Book
Conventions
· · · · · ·
(更多)
Copyright
List of Code Examples
Preface
To the Reader
About This Book
Conventions
Acknowledgments
Chapter 1. Multithreading
What Are Threads?
Interrupting Threads
Thread States
Thread Properties
Synchronization
Blocking Queues
Thread-Safe Collections
Callables and Futures
Executors
Synchronizers
Threads and Swing
Chapter 2. Collections
Collection Interfaces
Concrete Collections
The Collections Framework
Algorithms
Legacy Collections
Chapter 3. Networking
Connecting to a Server
Implementing Servers
Sending E-Mail
Making URL Connections
Advanced Socket Programming
Chapter 4. Database Programming
The Design of JDBC
The Structured Query Language
JDBC Installation
Basic JDBC Programming Concepts
Query Execution
Scrollable and Updatable Result Sets
Metadata
Row Sets
Transactions
Advanced Connection Management
Introduction to LDAP
Chapter 5. Distributed Objects
The Roles of Client and Server
Remote Method Invocations
Setup for Remote Method Invocation
Parameter Passing in Remote Methods
Server Object Activation
Java IDL and CORBA
Remote Method Calls with SOAP
Chapter 6. Advanced Swing
Lists
Trees
Tables
Styled Text Components
Progress Indicators
Component Organizers
Chapter 7. Advanced AWT
The Rendering Pipeline
Shapes
Areas
Strokes
Paint
Coordinate Transformations
Clipping
Transparency and Composition
Rendering Hints
Readers and Writers for Images
Image Manipulation
Printing
The Clipboard
Drag and Drop
Chapter 8. JavaBeans Components
Why Beans?
The Bean-Writing Process
Using Beans to Build an Application
Naming Patterns for Bean Properties and Events
Bean Property Types
BeanInfo Classes
Property Editors
Customizers
JavaBeans Persistence
Chapter 9. Security
Class Loaders
Bytecode Verification
Security Managers and Permissions
Digital Signatures
Code Signing
Encryption
Chapter 10. Internationalization
Locales
Number Formats
Date and Time
Collation
Message Formatting
Text Files and Character Sets
Resource Bundles
A Complete Example
Chapter 11. Native Methods
Calling a C Function from the Java Programming Language
Numeric Parameters and Return Values
String Parameters
Accessing Fields
Encoding Signatures
Calling Java Methods
Accessing Array Elements
Handling Errors
Using the Invocation API
A Complete Example: Accessing the Windows Registry
Chapter 12. XML
Introducing XML
Parsing an XML Document
Validating XML Documents
Locating Information with XPath
Using Namespaces
Using the SAX Parser
Generating XML Documents
XSL Transformations
Chapter 13. Annotations
Addition of Metadata to Programs
An Example: Annotating Event Handlers
Annotation Syntax
Standard Annotations
The apt Tool for Source-Level Annotation Processing
Bytecode Engineering
Index
· · · · · · (收起)
原文摘录
· · · · · ·
The last method is the most important. Permissions have an ordering, in which more general permissions imply more specific ones. Consider the file permission
p1 = new FilePermission("/tmp/-", "read, write");
This permission allows reading and writing of any file in the /tmp directory and any of its subdirectories.
This permission implies other, more specific permissions:
p2 = new FilePermission("/tmp/-", "read");
p3 = new FilePermission("/tmp/aFile", "read, write");
p4 = new FilePermission("/tmp/aDirectory/-", "write");
In other words, a file permission p1 implies another file permission p2 if
The target file set of p1 contains the target file set of p2.
The action set of p1 contains the action set of p2. (查看原文)
《Java核心技术卷2(第十二版)》是Cay S. Horstmann著的一本深入讲解Java编程技术的书籍。 这本书以其全面而深入的内容给我留下了深刻的印象。书中详细讨论了Java高级技术和库的使用,涵盖了多线程编程、网络编程、GUI编程、数据库访问、XML处理、Web服务等各个方面。每个主题...
(展开)
0 有用 Alien 2015-09-19 04:19:55
2当参考书