1public class Jacob {
2
3 public static void main(String[] args) {
4 //code here
5 }
6}
7
1public class Test {
2
3public static void main(String[] args){
4
5 System.out.println("Hello World");
6
7}
8}
9
1Class main {
2 Public static void main(String[] args) {
3 //Write your code here
4 }
5}
1public class Test {
2
3static void main(String[] args){
4
5 System.out.println("Hello World");
6
7}
8}
9
1PUBLIC- is access modifier. visible to the world.
2Public means that the method is visible and can
3be called from other objects of other types.
4STATIC- is specifier, any feature that has static
5, belongs to the class.This means that you can
6call a static method without creating an
7object of the class.
8VOID- is a return type, the method does not
9return any value. void means that
10the method has no return value.