
Java 7 Pocket Guide
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Table of Contents
- Preface
- Book Structure
- Conventions Used in This Book
- Authors
- Safari® Books Online
- How to Contact Us
- Second Edition Acknowledgments
- Part I. Language
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Memory Allocation and Garbage Collection of Reference Types
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 8. Java Modifiers
- Access Modifiers
- Other (Nonaccess) Modifiers
- Part II. Platform
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 13. NIO 2.0 Quicklook
- The Path Interface
- The Files Class
- Additional Features
- Chapter 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
- Chapter 15. Java Collections Framework
- The Collection Interface
- Implementations
- Collection Framework Methods
- Collections Class Algorithms
- Algorithm Efficiencies
- Comparator Interface
- Chapter 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
- Chapter 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
- Part III. Appendixes
- Appendix A. Third-Party Tools
- Development, CM, and Test Tools
- Libraries
- Integrated Development Environments
- Web Application Platforms
- Scripting Languages (JSR-223 compatible)
- Appendix 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
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.