Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
You can install the latest version of JDK using the following command.
brew install --cask temurin
For more details, please refer to chat with Gemini .