0% found this document useful (0 votes)
3 views

1.2 Java Platform

Java programming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

1.2 Java Platform

Java programming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Java Platform

What is JDK ?
Java features
Install Java On Windows

● Go to oracle downloads page and download jdk version 17.


● After you download jdk simple double click on that file.
● Add JAVA_HOME to environment variable and PATH variables

Install Java On Linux


● With Terminal
○ $ sudo apt install -y openjdk-17-jdk
● Install java with .deb file
○ $ wget https://download.oracle.com/java/17/archive/jdk-17.0.4.1_linux-x64_bin.deb
○ $ sudo apt install ./jdk-17.0.4.1_linux-x64_bin.deb
Sample Code
Command-Line Arguments
Why do we need Command-Line Arguments

A Java application can accept any number of arguments from the command line. This
allows the user to specify configuration information when the application is launched. The user
enters command-line arguments when invoking the application and specifies them after the
name of the class to be run. Oracle guide
Interview Questions
Doing the best at this moment puts you in the best place for the
next moment

You might also like