Synopses & Reviews
How many times have you reached an impasse while writing code because you couldn't remember how something in Java worked? This new pocket guide is designed to keep you moving. Concise, convenient and easy to use, the Java Pocket Guide gives you Java stripped down to its bare essentials -- in fact, it's the only book on Java that you can actually fit in your pocket.
Written by Robert and Patricia Liguori, senior software and lead information engineers for Java-based air traffic management and simulation environments, Java Pocket Guide contains everything you really need to know about Java, particularly everything you need to remember. The book pays special attention to the new areas in Java 5 and 6, such as generics and annotations.
Why do you need the Java Pocket Guide?
- It's the only CliffsNotes-style guide to Java available
- Lets you find important things quickly without consulting 1000-page tutorials
- Includes many command-line options
- Organized for quick and easy use on the job
If you're looking to learn some aspect of Java, this is not your book. Java Pocket Guide
is for the experienced Java programmers among you who need quick reminders to jog your memory on how something in the language works. Simply put, this pocket guide offers practical help for practicing developers.
About the Author
Robert Liguori is a Senior Software Engineer and has been developing,maintaining and testing air traffic management systems since 1996. Heis currently the lead developer for several Java based air trafficmanagement applications. Mr. Liguori has a Bachelors degree in ComputerScience and Information Technology from Richard Stockton College of NewJersey and is a Sun Certified Java Professional. He is also theco-founder of the Tech Center Java User Group.
Patricia Liguori is a Lead Information Systems Engineer and has beendeveloping air traffic management systems and simulation environmentssince 1994. She has been working with Java based applications since 1998as well as other technologies including J2EE, relational databases, XML,and XSL. Over the past several years, she has been leading thedevelopment of multi-organizational simulation environments used toconduct aviation research and analyze aviation systems. She holds aB.S. in Business Administration from Duquesne University, a B.S. inComputer Science from the Richard Stockton College of New Jersey and aM.S. in Computer Science from the New Jersey Institute of Technology.
Table of Contents
Preface; Book Structure; Font Conventions; Comments and Questions; Authors; Safari® Books Online; Acknowledgments; Dedication; Part I: Language; Chapter 1: Naming Conventions; 1.1 Class Names; 1.2 Interface Names; 1.3 Method Names; 1.4 Instance and Static Variable Names; 1.5 Parameter and Local Variables Names; 1.6 Generic Type Parameter Names; 1.7 Constant Names; 1.8 Enumeration Names; 1.9 Package Names; 1.10 Acronyms; Chapter 2: Lexical Elements; 2.1 Unicode and ASCII; 2.2 Comments; 2.3 Keywords; 2.4 Identifiers; 2.5 Separators; 2.6 Operators; 2.7 Literals; 2.8 Escape Sequences; 2.9 Unicode Currency Symbols; Chapter 3: Fundamental Types; 3.1 Primitive Types; 3.2 Literals for Primitive Types; 3.3 Floating-Point Entities; 3.4 Numeric Promotion of Primitive Types; 3.5 Wrapper Classes; 3.6 Autoboxing and Unboxing; Chapter 4: Reference Types; 4.1 Comparing Reference Types to Primitive Types; 4.2 Default Values; 4.3 Conversion of Reference Types; 4.4 Converting Between Primitives and Reference Types; 4.5 Passing Reference Types into Methods; 4.6 Comparing Reference Types; 4.7 Copying Reference Types; 4.8 Memory Allocation and Garbage Collection of Reference Types; Chapter 5: Object-Oriented Programming; 5.1 Classes and Objects; 5.2 Variable Length Argument Lists; 5.3 Abstract Classes and Abstract Methods; 5.4 Static Data Members, Static Methods, and Static Constants; 5.5 Interfaces; 5.6 Enumerations; 5.7 Annotations Types; Chapter 6: Statements and Blocks; 6.1 Expression Statements; 6.2 Empty Statement; 6.3 Blocks; 6.4 Conditional Statements; 6.5 Iteration Statements; 6.6 Transfer of Control; 6.7 Synchronized Statement; 6.8 Assert Statement; 6.9 Exception Handling Statements; Chapter 7: Exception Handling; 7.1 The Exception Hierarchy; 7.2 Checked/Unchecked Exceptions and Errors; 7.3 Common Checked/Unchecked Exceptions and Errors; 7.4 Exception Handling Keywords; 7.5 The Exception Handling Process; 7.6 Defining Your Own Exception Class; 7.7 Printing Information About Exceptions; Chapter 8: Java Modifiers; 8.1 Access Modifiers; 8.2 Other (Non-Access) Modifiers; Part II: Platform; Chapter 9: Java Platform, SE; 9.1 Common Java SE API Libraries; Chapter 10: Development Basics; 10.1 Java Runtime Environment; 10.2 Java Development Kit; 10.3 Java Program Structure; 10.4 Command-Line Tools; 10.5 Classpath; Chapter 11: Basic Input and Output; 11.1 Standard Streams in, out, and err; 11.2 Class Hierarchy for Basic Input and Output; 11.3 File Reading and Writing; 11.4 Socket Reading and Writing; 11.5 Serialization; 11.6 Zipping and Unzipping Files; 11.7 File and Directory Handling; Chapter 12: Java Collections Framework; 12.1 The Collection Interface; 12.2 Implementations; 12.3 Collection Framework Methods; 12.4 Collections Class Algorithms; 12.5 Algorithm Efficiencies; 12.6 Comparator Interface; Chapter 13: Generics Framework; 13.1 Generic Classes and Interfaces; 13.2 Constructors with Generics; 13.3 Substitution Principle; 13.4 Type Parameters, Wildcards, and Bounds; 13.5 The Get and Put Principle; 13.6 Generic Specialization; 13.7 Generic Methods in Raw Types; Chapter 14: Concurrency; 14.1 Creating Threads; 14.2 Thread States; 14.3 Thread Priorities; 14.4 Common Methods; 14.5 Synchronization; 14.6 Concurrent Utilities; Chapter 15: Memory Management; 15.1 Garbage Collectors; 15.2 Memory Management Tools; 15.3 Command-Line Options; 15.4 Resizing the JVM Heap; 15.5 Interfacing with the GC; Chapter 16: The Java Scripting API; 16.1 Scripting Languages; 16.2 Script Engine Implementations; 16.3 Setting Up Scripting Languages and Engines; Chapter 17: Third-Party Tools; 17.1 Development Tools; 17.2 Libraries; 17.3 IDEs; 17.4 Web Application Platforms; 17.5 Scripting Languages; Chapter 18: UML Basics; 18.1 Class Diagrams; 18.2 Object Diagrams; 18.3 Graphical Icon Representation; 18.4 Connectors; 18.5 Multiplicity Indicators; 18.6 Role Names; 18.7 Class Relationships; 18.8 Sequence Diagrams;