9.What would be the results of compiling and running the following class. Select the one correct answer.
class
test {
public static void main() {
System.out.println("test");
}
}
a.The program does not compile as there is no main method defined.
b.The program compiles and runs generating an output of "test"
c.The program compiles and runs but does not generate any output.
d.The program compiles but does not run.
I got the above question from a question dump and they put the answer as (d)
The method signature is wrong then how does this code compiles?