Java Tutorials - Herong's Tutorial Examples - v8.22, by Herong Yang
Downloading and Installing JDK on Mac
This section describes how to download and install JDK 13 on a Mac computer
To learn Java, you need to have a copy of JDK (Java Development Kit) installed on your machine. If you are a Mac computer user, you can follow this tutorial to download and install JDK 20 on your Mac computer.
1. Go to Oracle Java SE download website at oracle.com/technetwork/java/javase/downloads.
2. Click "JDK 20 > macOS" tab.
3. Click on the "jdk-20_macos-x64_bin.dmg" link in the "x64 DMG Installer" line to download the installation file to your "Downloads" directory.
4. Double-click on the "jdk-20_macos-x64_bin.dmg" file to install it.
To test the installation, open a command window to try the java command.
herong$ java -version java version "20.0.1" 2023-04-18 Java(TM) SE Runtime Environment (build 20.0.1+9-29) Java HotSpot(TM) 64-Bit Server VM (build 20.0.1+9-29, mixed mode, sharing)
Cool, I have successfully installed JDK 20 on my macOS computer!
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