Java Hello World


Q. Write a Java program to print "Hello World"

 public class Simplejava
{
	public static void main(String []args) 
    {
		System.out.println("Hello World"); // prints Hello World
	}
} 

Q. Write an algorithm to print "Hello World"

1. Start the program.
2. Define a class named HelloWorld.
3. Inside the class, define the main method: public static void main(String[] args).
4. Use the System.out.println() statement to print "Hello, World!" to the console.
5. End the program. 



OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.