Java Pocket Guide - Liguori, Robert Ebook Piekary Śląskie

Any time you need quick answers for developing or debugging Java programs, this pocket guide is the ideal reference to standard features of the Java programming language and its platform. You...ll find helpful programming examples, tables, figures, and lists fast-including Java 9 features such as …

od 59,42 Najbliżej: 21 km

Liczba ofert: 1

Oferta sklepu

Opis

Any time you need quick answers for developing or debugging Java programs, this pocket guide is the ideal reference to standard features of the Java programming language and its platform. You...ll find helpful programming examples, tables, figures, and lists fast-including Java 9 features such as modular source code and the new JShell interactive command-line REPL. It...s a handy companion, whether you...re in the office, in the lab, or on the road.This book also provides material to help you prepare for the Oracle Certified Associate Java Programmer exam.Quickly find Java language details, such as naming conventions, types, statements and blocks, and object-oriented programmingGet details on the Java SE platform, including development basics, memory management, concurrency, and genericsUse new features in Java 9, including modular source code and JShellBrowse through information on basic input/output, NIO 2.0, the Java collections framework, and the Java Scripting APIGet supplemental references to fluent APIs, third-party tools, and basics of the Unified Modeling Language (UML) Spis treści: Preface Book Structure Conventions Used in This Book OReilly Safari How to Contact Us Acknowledgments I. Language 1. Naming Conventions Acronyms Annotation Names Class Names Constant Names Enumeration Names Generic Type Parameter Names Instance and Static Variable Names Interface Names Method Names Package Names Module Names Parameter and Local Variable Names 2. Lexical Elements Unicode and ASCII Printable ASCII Characters Nonprintable ASCII Characters Compact Strings 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 Functional Interfaces 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 Modifiers Encoding II. Platform 9. Java Platform, Standard Edition Common Java SE API Libraries Language and Utility Libraries Base Libraries Integration Libraries Miscellaneous User Interface Libraries JavaFX User Interface Library 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 Classpath 11. Memory Management Garbage Collectors Serial Collector Parallel Collector Parallel Compacting Collector Concurrent Mark-Sweep Collector Garbage-First (G1) Collector Memory Management Tools Command-Line Options Resizing the JVM Heap Metaspace 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 13. New I/O API (NIO.2) 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 Functional Interface Convenience Factory Methods 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 18. Date and Time API Legacy Interoperability Regional Calendars ISO Calendar Machine Interface Durations and Periods JDBC and XSD Mapping Formatting 19. Lambda Expressions Es Basics Es Syntax and Example Method and Constructor References Specific-Purpose Functional Interfaces General-Purpose Functional Interfaces Resources for Es Tutorials Community Resources 20. JShell: the Java Shell Getting Started Snippets Modifiers Flow Control Statements Package Declarations Using JShell Primary Expressions Dependencies Statements and Code Blocks Method and Class Declarations Viewing, Deleting, and Modifying Snippets Saving, Loading, and State JShell Features Scratch Variables Tab Auto-Complete Forward Referencing Checked Exceptions Hierarchy and Scope Summary of JShell Commands 21. Java Module System Project Jigsaw Java Modules Automatic Modules Unnamed Modules Accessibility Compiling Modules Modular JDK jdeps Identifying Dependencies Identifying Undocumented JDK Internal Dependencies Defining a Module Exporting a Package Declaring Dependencies Transitive Dependencies Defining Service Providers Defining Service API Implementing Service API Using Service Providers jlink III. Appendixes A. Fluent APIs B. Third-Party Tools Development, CM, and Test Tools Libraries Integrated Development Environments Web Application Platforms Scripting Languages Compatible with JSR-223 C. 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

Specyfikacja

Podstawowe informacje

Autor
  • Liguori, Robert
Wybrane wydawnictwa
  • O'Reilly Media
Format
  • MOBI
  • EPUB
Ilość stron
  • 290
Rok wydania
  • 2017