Hi Admin,
For the below question, please let me know why option 2 is wrong as I'm able to compile it without error:
The options below contain the complete contents of a file (the name of the file is not specified). Which of these options can be run with the following command line once compiled?
java main
Option 2 is :
//in file main.java
public static void main4(String[] args) {
System.out.println("hello"); }
Thanks,Yogesh.
Regarding question about 'main.class'
Moderator: admin
-
- Posts: 1
- Joined: Wed Apr 02, 2014 5:37 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: Regarding question about 'main.class'
The question asks you to run it as well.
Who is online
Users browsing this forum: No registered users and 9 guests