Our First Java Program

  • Eclipse: Oxygen
  • Java: 1.8

Following is a “hello world” program in Java, the following program will display the text “Hello World” on the console.

Hello.java

Output

Hello World!

Do you know?

  • The main method is the entry point for console based programs
  • out.println can print the text as well as the value of variable.

Contributed by: Poonam Tomar


Full stack Java Developer

   Buy me a coffee!

 

PayTM QR (INDIA)

Download file

Leave a Reply

avatar
  Subscribe  
Notify of
Close Menu