pratical 1 Java
pratical 1 Java
platform. It requires around 800 MB disk space to install JDK, as JRE also gets installed
along with it. JDK requires 128 MB of memory space to run JDK successfully. This is
the minimum RAM required for running basic and small programs, but as the size of an
application increases, the memory requirement also increases for the application to run
smoothly.
old JDK versions and uninstall them. Though we can have more than one JDK, it is
easier to set paths and to work with just the latest one.
• Go to the Oracle site and open the Java SE download page. Under the latest
version of Java Platform, Standard Edition, click on the JDK download button.
Next, click on the Accept License Agreement button and choose your version of Java
for Windows (32-bit or 64-bit) to proceed with downloading the JDK executable file.
• In this step, we will be running the executable JDK file (It will be a file with .exe
as an extension) once the download is done. This installs JDK as well as JRE.
• Click on Next to proceed with the installation, and follow the Installation guide
To recover some of our system’s disk space, it is good practice to delete the
• JDK gets installed in the C directory of our system by default having the path
• We will need to update our system’s Environment variables with our installed
JDK bin path to run the Java programs because while executing the programs,
the command prompt will look for the complete JDK bin path.
• The PATH variable in our system provides the exact location of executables that
will be used for running Java programs, such as javac and java. The
2. Inside Properties, in the left-side panel, select Advanced System Settings, and
3. Click on New, and type PATH in the Variable Name, and enter the path of the bin
• If we already have the PATH variable, we can edit it by adding it to the existing
values.
4. Open the command prompt and enter the command “java –version”, and if it runs
5. Now that we have seen the steps to install JDK, let the programming fun begin!
Step 1: Download JDK from the Site
TestClass.java