J1

</> CodeWithHarry
Menu

Show Course Contents

Introduction to Java + Installing Java JDK and IntelliJ IDEA for Java

  • Java is one of the most popular programming languages because it is used in various tech fields like app development, web development, client-server applications, etc.
  • Java is an object-oriented programming language developed by Sun Microsystems of the USA in 1991.
  • It was originally called Oak by James Goslin. He was one of the inventors of Java.
  • Java = Purely Object-Oriented.

How Java Works?

The source code in Java is first compiled into the bytecode.

Then the Java Virtual Machine(JVM) compiles the bytecode to the machine code.

Java Installation:

Step 1:  Downloading JDK 

  • JDK stands for Java Development Kit. It contains Java Virtual Machine(JVM) and Java Runtime Environment(JRE).
  • JDK – Java Development Kit = Collection of tools used for developing and running java programs.
  • JRE – Java Runtime Environment = Helps in executing programs developed in JAVA.
  • Click here, and you will be redirected to the official download page of JDK. 
  • Select your operating system and download the file(executable file in case of Windows).

Video tutorial for downloading JDK :

Step 2: Installing JDK

  • Once the executable file is downloaded successfully, right-click and open the file.
  • The executable file will start executing.
  • Keep clicking on the Next button to install the JDK in default settings.
    Video tutorial for installing JDK :

Step 3: Downloading IntelliJ IDEA :

  • We need an Integrated Development Environment(IDE) to write and debug our code easily.
  • IntelliJ IDEA is the best-suited IDE for writing Java code.
  • Click here, and you will be redirected to the official download page of IntelliJ IDEA.
  • Download the Community Version of the IntelliJ IDEA as it is free to use.
    Video tutorial for downloading IntelliJ IDEA:

Step 4: Installing IntelliJ IDEA :

  • Once the download completes, open the .exe file, and the installation process will begin.
  • Click on the "Next" button to install the IntelliJ IDEA in the default location.
  • Do not forget to check "Add launchers dir to the PATH," as shown in the below image. 

    Screenshot for adding java to path

  • After this, click on the "Next" button and then click on the "Install" button.

    Video tutorial for installing IntelliJ IDEA:



Handwritten Notes: Click To Download

Ultimate Java Cheatsheet: Click To Download