/ / Simple Java Program for Printing Hello World in Java using Notepad++

Simple Java Program for Printing Hello World in Java using Notepad++

In this example, you'll learn about the java program for printing hello world in java using notepad/notepad++. Import the basic package in this program and use the inbuilt class of this package.


java program for hello world
java program for hello world


Java code for hello world



import java.lang.*;
class simple{
public static void main(String args[]){
   System.out.println("Java Hello World!!"); 
   }
}

This java program I import the basic java package lang in this lang package one class is present known System and println is a function of System class. so, to invoke this println function we need one instance or object. out is a static member of System class and out is an instance of java.io.PrintStream. Whatever we write in double-quotes is print as it as to output.


OUTPUT


   Java Hello World!!

This is all about simple java program for hello world. Happy Coding 😊
Simple Java Program for Printing Hello World in Java using Notepad++ Simple Java Program for Printing Hello World in Java using Notepad++ Reviewed by Veer Bhadra Singh on April 26, 2020 Rating: 5

No comments:

Powered by Blogger.