Java Tutorials - Herong's Tutorial Examples - v8.22, by Herong Yang
JDK Documentation Installation
This section describes how to install JDK Documentation on your own local machine.
To learn Java more effectively, you definitely need to have a copy of the JDK Documentation installed on your computer. JDK Documentation provides you detailed information of all classes and methods used in JDK.
You can follow what I did to download and install JDK 17 Documentation.
1. Open the Java download home page with this URL: https://www.oracle.com/java/technologies/downloads/.
2. Click the "Documentation Download" button near the bottom of the page. You will see "Java SE Development Kit 17 Documentation" page showing up.
3. Click the hyper link of "jdk-17.0.1_doc-all.zip".
4. Save the download file "jdk-17.0.1_doc-all.zip" to a temporary directory.
5. Double-click on "jdk-17.0.1_doc-all.zip" to extract all files to "C:\Program Files\Java\jdk-17.0.1 directory.
6. To verify the installation, open the "C:\Program Files\Java\jdk-17.0.1\docs\index.html" with a Web browser. You should see the JDK 17 Documentation starting page.
7. Click the "java.logging" module on the JDK 17 Documentation page to see the API documentation of the java.logging module.
If you are a Mac user, you need to extract all files from "jdk-17.0.1_doc-all.zip" to /Library/Java/JavaVirtualMachines/jdk-17.jdk directory. And open "docs/index.html" from that directory in a Web browser.
If you are a Linux user, you can extract all files from "jdk-17.0.1_doc-all.zip" to the ~/jdk directory. And open "docs/index.html" from that directory in a Web browser.
Table of Contents
Downloading and Installing JDK on Mac
Downloading and Installing JDK on Windows
Adding JDK "bin" Directory to Path Setting
Downloading and Installing JDK on Linux
►JDK Documentation Installation
Execution Process, Entry Point, Input and Output
Primitive Data Types and Literals
Bits, Bytes, Bitwise and Shift Operations
Managing Bit Strings in Byte Arrays
Reference Data Types and Variables
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