You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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.
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.
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.
After this, click on the "Next" button and then click on the "Install" button.