Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Java 7 Pocket Guide
Dedication
Preface
Book Structure
Conventions Used in This Book
Authors
Safari® Books Online
How to Contact Us
Second Edition Acknowledgments
I. Language
1. Naming Conventions
Class Names
Interface Names
Method Names
Instance and Static Variable Names
Parameter and Local Variable Names
Generic Type Parameter Names
Constant Names
Enumeration Names
Package Names
Acronyms
2. Lexical Elements
Unicode and ASCII
Printable ASCII Characters
Nonprintable ASCII Characters
Comments
Keywords
Identifiers
Separators
Operators
Literals
Boolean Literals
Character Literals
Integer Literals
Floating-Point Literals
String Literals
Null Literals
Escape Sequences
Unicode Currency Symbols
3. Fundamental Types
Primitive Types
Literals for Primitive Types
Floating-Point Entities
Operations Involving Special Entities
Numeric Promotion of Primitive Types
Unary Numeric Promotion
Binary Numeric Promotion
Special Cases for Conditional Operators
Wrapper Classes
Autoboxing and Unboxing
Autoboxing
Unboxing
4. Reference Types
Comparing Reference Types to Primitive Types
Default Values
Instance and Local Variable Objects
Arrays
Conversion of Reference Types
Widening Conversions
Narrowing Conversions
Converting Between Primitives and Reference Types
Passing Reference Types into Methods
Comparing Reference Types
Using the Equality Operators
Using the equals() Method
Comparing Strings
Comparing Enumerations
Copying Reference Types
Copying a Reference to an Object
Cloning Objects
Shallow and deep cloning
Memory Allocation and Garbage Collection of Reference Types
5. Object-Oriented Programming
Classes and Objects
Class Syntax
Instantiating a Class (Creating an Object)
Data Members and Methods
Accessing Data Members and Methods in Objects
Overloading
Overriding
Constructors
Superclasses and Subclasses
The this Keyword
Variable-Length Argument Lists
Abstract Classes and Abstract Methods
Abstract Classes
Abstract Methods
Static Data Members, Static Methods, Static Constants, and Static Initializers
Static Data Members
Static Methods
Static Constants
Static Initializers
Interfaces
Enumerations
Annotation Types
Built-in Annotations
Developer-Defined Annotations
6. Statements and Blocks
Expression Statements
Empty Statement
Blocks
Conditional Statements
The if Statement
The if else Statement
The if else if Statement
The switch Statement
Iteration Statements
The for Loop
The Enhanced for Loop
The while Loop
The do while Loop
Transfer of Control
The break Statement
The continue Statement
The return Statement
Synchronized Statement
Assert Statement
Exception Handling Statements
7. Exception Handling
The Exception Hierarchy
Checked/Unchecked Exceptions and Errors
Checked Exceptions
Unchecked Exceptions
Errors
Common Checked/Unchecked Exceptions and Errors
Common Checked Exceptions
Common Unchecked Exceptions
Common Errors
Exception Handling Keywords
The throw Keyword
The try/catch/finally Keywords
The try-catch Statement
The try-finally Statement
The try-catch-finally Statement
The try-with-resources Statement
The multi-catch Clause
The Exception Handling Process
Defining Your Own Exception Class
Printing Information About Exceptions
The getMessage() Method
The toString() Method
The printStackTrace() Method
8. Java Modifiers
Access Modifiers
Other (Nonaccess) Modifiers
II. Platform
9. Java Platform, SE
Common Java SE API Libraries
Language and Utility Libraries
Base Libraries
Integration Libraries
User Interface Libraries: Miscellaneous
User Interface Libraries: Abstract Window Toolkit (AWT) API
User Interface Libraries: Swing API
Remote Method Invocation (RMI) and CORBA Libraries
Security Libraries
Extensible Markup Language (XML) Libraries
10. Development Basics
Java Runtime Environment
Java Development Kit
Java Program Structure
Command-Line Tools
Java Compiler
Java Interpreter
Java Program Packager
JAR File Execution
Java Documenter
Classpath
11. Memory Management
Garbage Collectors
Serial Collector
Parallel Collector
Parallel Compacting Collector
Concurrent Mark-Sweep (CMS) Collector
Garbage-First (G1) Collector
Memory Management Tools
Command-Line Options
Resizing the JVM Heap
Interfacing with the GC
Explicit Garbage Collection
Finalization
12. Basic Input and Output
Standard Streams in, out, and err
Class Hierarchy for Basic Input and Output
File Reading and Writing
Reading Character Data from a File
Reading Binary Data from a File
Writing Character Data to a File
Writing Binary Data to a File
Socket Reading and Writing
Reading Character Data from a Socket
Reading Binary Data from a Socket
Writing Character Data to a Socket
Writing Binary Data to a Socket
Serialization
Serialize
Deserialize
Zipping and Unzipping Files
Compressing and Uncompressing GZIP Files
File and Directory Handling
Commonly Used Methods in the File Class
Accessing Existing Files
Seeking in Files
13. NIO 2.0 Quicklook
The Path Interface
The Files Class
Additional Features
14. Concurrency
Creating Threads
Extending the Thread Class
Implementing the Runnable Interface
Thread States
Thread Priorities
Common Methods
Synchronization
Concurrent Utilities
Executors
Concurrent Collections
Synchronizers
Timing Utility
15. Java Collections Framework
The Collection Interface
Implementations
Collection Framework Methods
Collections Class Algorithms
Algorithm Efficiencies
Comparator Interface
16. Generics Framework
Generic Classes and Interfaces
Constructors with Generics
Substitution Principle
Type Parameters, Wildcards, and Bounds
The Get and Put Principle
Generic Specialization
Generic Methods in Raw Types
17. The Java Scripting API
Scripting Languages
Script Engine Implementations
Embedding Scripts into Java
Invoking Methods of Scripting Languages
Accessing and Controlling Java Resources from Scripts
Setting Up Scripting Languages and Engines
Scripting Language Setup
Scripting Engine Setup
Scripting Engine Validation
III. Appendixes
A. Third-Party Tools
Development, CM, and Test Tools
Libraries
Integrated Development Environments
Web Application Platforms
Scripting Languages (JSR-223 compatible)
B. UML Basics
Class Diagrams
Name
Attributes
Operations
Visibility
Object Diagrams
Graphical Icon Representation
Classes, Abstract Classes, and Interfaces
Notes
Packages
Connectors
Multiplicity Indicators
Role Names
Class Relationships
Association
Direct Association
Composition Association
Aggregation Association
Temporary Association
Generalization
Realization
Sequence Diagrams
Participant (1)
Found Message (2)
Synchronous Message (3)
Return Call (4)
Asynchronous Message (5)
Message to Self (6)
Lifeline (7)
Activation Bar (8)
Index
About the Authors
Copyright
← Prev
Back
Next →
← Prev
Back
Next →