class helloworld ( public static void main(String[] u) { System.out.println("Hello Wrold"); } )
Compilation error since "Hello Wrold" has spelling mistake, it should be "Hello World"
Compilation error since the class name does not contain at least one capital letter. It works fine if the class name was HelloWorld
Compilation error for some other reason
Hello Wrold
Correct Answer : C
The first statement is class helloworld which names a class. The class must have curly braces { } but not parentheses ( ). So we get a compilation error.