How to install JDK on Ubuntu?

To install JDK on Ubuntu, follow these steps:

  1. You can open the terminal using the shortcut Ctrl+Alt+T.
  2. Update the apt repository.
  3. Please install the default Java Development Kit (JDK) with the following command: sudo apt install default-jdk.
  4. The standard JDK
  5. Java Development Kit version 11 from OpenJDK
  6. Please provide me with the version of Java installed.

You have successfully installed JDK on Ubuntu.

bannerAds