WHAT IS JAVA :
- Java is a general-purpose, class-based, object-oriented programming language.
- It is a computing platform for application development. Java is fast, secure, and reliable, therefore.
- Initially it was launch by Sun Micro systems and then bought buy Oracle
- Java uses the concept of WORA(Write Once Run Anywhere)
It is used for:
- Desktop application
- Mobile application
- Games
- Web application
WHO IS CREATED JAVA PROGRAMMING:
Java is created by " James Gosling "
JAVA DOWNLOAD STEPS IN WINDOWS :
- Go to https://www.oracle.com/
- Click products and scroll down hardware and software click "java"
- Scroll down click windows
- click x64 installer link https://download.oracle.com/java/19/latest/jdk-19_windows-x64_bin.exe ( sha256) download will be start
Successfully downloaded java
JAVA INSTALL STEP IN WINDOWS
- Open java Download file loaction
- Click jdk installer or open with run as Administrator
- jdk installer will be run and click next
- Choose install file loaction and click next
- Install process will be started
- After finish process click close
Installed successfully .
WRITE A SIMPLE PROGRAM AND RUN
- Open note pad
- Type a program
public class Main
{
public static void main(String[] args)
{
System.out.println("Hello World");
}
}
- Save your file name to class name . This program class name is "main" so you save file "main.java "
- open save location and type search bar to "cmd" or open "cmd command prompt"
- Type " javac main.java" to compile a program
- Type "java main" to run program
- Out put show successfully "Hello world"