Introduction to Java + Installing Java JDK and IntelliJ IDEA for Java
Introduction to Java + Installing Java JDK and IntelliJ IDEA for Java
Tutorial 1---
What is JAVA?
Java is an Object Oriented programming language developed by Sum Microsystems in USA in 1991.
It was originally called Oak by James Goslin (one of the inventors of JAVA)
JAVA = Purely Object Oriented
How JAVA works?
JAVA is compiled into the bytecode and then it is interpreted to machine code.
JAVA Installation:
Go to Google & type "Install JDK" = Installs JAVA JDK
Go to Gooogle & type "Install IntelliJ Idea" = Installs JAVA IDE
JDK = JAVA Development Kit = Collection of tools used for developing and running JAVA programs.
JRE = JAVA Runtime Enviroment = Helps in executing programs developed in JAVA.
After installing JDK and IntelliJ Idea; the open a new project file; and click on command line app and you'll see something like this-
We'll print Hello World on it (This is the first tutorial so I am not explaining anything, so please stay tuned for next tutorial)
Code:
package com.company;
public class Main {
public static void main(String[] args) {
// write your code here
System.out.println("Hello World");
}
}
Comments
Post a Comment