Which JDK do I have Ubuntu?
Answer
Ubuntu chooses OpenJDK as its default JDK, which is not 100% compatible with Oracle JDK.
Answer
Ubuntu chooses OpenJDK as its default JDK, which is not 100% compatible with Oracle JDK.
- Step 0: Check if JDK has already been Installed. Open a Terminal and issue this command: $ javac -version.
- Step 1: Download and Install JDK.
- Step 2: Compile and Run a Hello-world Java Program.