publicclass MainClass{
publicstaticvoid 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.