1.30.9.What will be the result of trying to compile and run the following code?
public class MainClass{ public static void main(){
System.out.println("hello world");
}
}
A. The class will compile without error but the program will not run.
B. The class will compile and run, writing "hello world" to the standard output.
C. The compiler will report an error.