JDK Documentation Installation

This section describes how to install JDK Documentation on your own local machine.

To learn JDK more effectively, you definitely need to have a copy of the JDK Documentation installed on your own machine. JDK Documentation provides you detailed information of all classes and methods used in JDK. Here is what I did to download and install JDK 13 Documentation on my macOS machine.

1. Open the Java download home page with this URL: http://www.oracle.com/technetwork/java/javase/downloads/.

2. Click the "Documentation Download" link in the "Java SE 13" section. You see the "Java SE Development Kit 13 Documentation" page showing up.

3. Click the "jdk-13.0.2_doc-all.zip" link. You see the license agreement page showing up.

4. Check the "Accept License Agreement" radio button and click the "Download jdk-13.0.2_doc-all.zip" button.

5. Wait for the download to finish. You see a new sub-directory called "docs" in the your "Downloads" directory. macOS automatically unzipped the downloaded file for you.

6. Start a Terminal window and run commands below to install it.

herong$ cd ~/Downloads

herong$ sudo mv docs/ /Library/Java/JavaVirtualMachines/jdk-13.jdk

7. Open file:///Library/Java/JavaVirtualMachines/jdk-13.jdk/docs/api/index.html in a Web browser. You see "Java® Platform, Standard Edition & Java Development Kit Version 13 API Specification" showing up.

8. Click the "java.logging" module to see the API Specification of the java.logging module.

I think my JDK 13 documentation is installed correctly.

Table of Contents

 About This Book

JDK - Java Development Kit

 Downloading and Installing JDK 13

JDK Documentation Installation

 Downloading and Installing JDK 10

 Writing My First Java Program

 Adding JDK "bin" Directory to Path Setting

 JDK 10 Documentation Installation

 Execution Process, Entry Point, Input and Output

 Primitive Data Types and Literals

 Control Flow Statements

 Bits, Bytes, Bitwise and Shift Operations

 Managing Bit Strings in Byte Arrays

 Reference Data Types and Variables

 Enum Types and Enum Constants

 StringBuffer - The String Buffer Class

 System Properties and Runtime Object Methods

 Generic Classes and Parameterized Types

 Generic Methods and Type Inference

 Lambda Expressions and Method References

 Java Modules - Java Package Aggregation

 Execution Threads and Multi-Threading Java Programs

 ThreadGroup Class and "system" ThreadGroup Tree

 Synchronization Technique and Synchronized Code Blocks

 Deadlock Condition Example Programs

 Garbage Collection and the gc() Method

 Assert Statements and -ea" Option

 Annotation Statements and Declarations

 Java Related Terminologies

 Outdated Tutorials

 References

 Full Version in PDF/EPUB