22. public class HelloWorld {
public static void main(String [] args) {
System.out.println(“Hello World”);
}
}
23. public class HelloWorld {
//beginning of the class body
public static void main(String [] args) {
System.out.println(“Hello World”);
}
} //end of the class body
24. public class HelloWorld {
public static void main(String [] args) {
//beginning of the method body
System.out.println(“Hello World”);
} //end of the method body
}
25. public class HelloWorld
public static void main(String [] args) {
System.out.println(“Hello World”);
}
}
Bracket
missing
Bracket expected