OOPS JAVA Introduction
OOPS JAVA Introduction
BY
● Java Programs are compiled to Java byte-codes, a kind of machine independent representation. This
program is then executed by an interpreter called the Java Virtual Machine (JVM).
Introduction
● A compiler translates code written in a high-level programming language into a lower-level language like
assembly language, object code and machine code (binary 1 and 0 bits). It converts the code ahead of time
before the program runs.
Installation
● Install JDK. Open Command Prompt (cmd.exe) and type java -version to see if Java is running on your
machine.
● Install text editor (NotePad++) (For writing Java Code)
Run First Program
System.out.println("Hello World");
1. Save the file (hello.java) 2. Open the directory where the file is saved. 3. Open CMD (terminal)