In last tutorial, we have deeply explained the Structure of Java Hello Program. Now, below is the simple Java Hello Program.
public class MainApp
{
public static void main(String[] args)
{
System.out.println("Hello Deepak");
}
}
In this example, we have a class named MainApp, and within this class, there is a main method. The method prints "Hello Deepak...!!" to the console.
Breaking Down the program as below:-
java MainApp Hello Deepak
, the array will contain:
java.lang
package.
in:
Standard input stream (e.g., keyboard input). out:
Standard output stream (e.g., console output). err:
Standard error stream (e.g., error messages). in:
Standard input stream (e.g., keyboard input). out:
Standard output stream (e.g., console output). err:
Standard error stream (e.g., error messages).
Your feedback helps us grow! If there's anything we can fix or improve, please let us know.
We’re here to make our tutorials better based on your thoughts and suggestions.