You are on page 1of 2

1.

2.

public class FiveHelloWorlds


{
public static void main(String[] args) {
System.out.println("Hello World\nHello World\nHello World\nHello
World\nHello World");
}
}

3.
A. public - means that anyone can access it
B. static - means that you can run this method without creating an instance of Main.
C. void - means that this method doesn't return any value.
D. main - is the name of the method.

4.
A. public - once you've mispelled it you can't access it.
B. static - when you mispelled it you can't run it.
C. void - when you mispelled it it means this method will return it any value. There
will be errors.
D. D. main - The program will not run it will have errors

You might also like