In this series of tutorials, we will learn java step by step.
☛ Next >> Data Types In Java!
It specifies the type and size of a variable. They are grouped ...
Main Method!
Everything inside Java is written in class. The entry point of a Java program is public static void main(String[] args). The functions which are required to be loaded at the start of the Java application is written in the main method.
Print Hello World!
For printing hello world in Java user should write System.out.println("Hello World"); inside the main method.Input :
public static void main(String[] args){ |
System.out.println("Hello World"); |
} |
Output :
Hello World |
☛ Next >> Data Types In Java!
It specifies the type and size of a variable. They are grouped ...
No comments:
Post a Comment