How to print hello word in java

Updated at 31-Jul-2022, By samar

How to print hello word in java

Hello everyone, in this post we will examine how to solve the "How to print hello word in java" programming puzzle.

Print hello world word in java. Hello world is very first program in every programming language to start. In java we have to create a main method in class to print the hello world.
  • class HelloWorld {
        public static void main(String[] args) {
            System.out.println("Hello, World!"); 
        }
    }
    

Back to code snippet queries related java