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 Questions

The 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


© Copyright 1997 - 2019 | www.bestdotnettraining.com | www.deccansoft.com | All Rights Reserved.
Bestdotnet google plus
Enquiry Now

Input symbols