- 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.
- The source code in Java is first compiled into the bytecode.
- Then the Java Virtual Machine(JVM) compiles the bytecode to the machine code.
- 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).
- 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.
- 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.
- 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.
- After this, click on the "Next" button and then click on the "Install" button.