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
A)

The class file 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 class declaration is invalid

D)

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