How to write a Hello program in java?

How to write a Hello program in java?

Previous Home Next

 

In this program we are going to write a Hello program using java.

In this program we are writing a  hello program just to print the text "Hello world!"
 It is simple program just write the string "Hello world" in double inverted quotes  in the System.out.println ();

The text is written inside the double inverted quotes .

 
package R4R soft tech;

public class hello {

public static void main(String[] args) {
System.out.println("Hello world!");


}

}



Hello world!
Previous Home Next