In this post we will learn how to write simple java Program looks like. Every Programming Lanugauge a basic program to check the program functions working or not . Java is the one of the most popular and widely use Programming Lanugauge. In this Program we will learn how the java program are ?
Output:-
The Program Display a message Hello World . The Hello World Consist Three Components: Class Defination, Main method and Sorce Code.
Parameters used in Hello World Program:
Class: Class Keyword is used to declare a class
public:- JVM can exexcute the method anywhere. It is a access modifier keyword to represents a visiblity. It means visible to all.
static:- static is a keyword to declare any method as static.
void:- void means null. The void is a return type variable. It means doesn't return anything.
main:- It is a entry point of any program.
string args[]:- It is used for command line argument.
System.out.println() :- It is used to print the statment. println is a method of PrintStream class
jjjjjjjjjjjjjjjjjjjjjjj
0 Comments
Post a Comment