What will be the result of trying to compile and run the following Java program: class HelloWorld { public static void main(String args) { System.out.println("hello world"); } }
Back to QuestionsThe class file will compile without error but the program will not run
The class will compile and run, writing "hello world" to the standard output
The class declaration is invalid
The number of parameters in main method are incorrect