JAVA Introduction

GOCOURSE

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:

  1. Desktop application
  2. Mobile application
  3. Games
  4. Web application 

WHO IS CREATED JAVA PROGRAMMING:

Java is created by " James Gosling "


JAVA DOWNLOAD STEPS IN WINDOWS :


  • Click products and scroll down hardware and software click "java"


  • Scroll down click windows  


 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");
  }
}

  • click file and click save or ctrl+s to save your file 




  • 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"




Our website uses cookies to enhance your experience. Learn More
Accept !

GocourseAI

close
send