Problem
Write a program in Java to display “Hello, World!” on the screen.
Java Program to display “Hello, World!” in Console Window.
This is a simple Java program that displays “Hello, World!” on the console window.
public class HelloWorld{ public static void main(String []args){ // AC. Display Hello,World in console. System.out.println("Hello World"); } }
Output
Hello, World!
Leave a Reply