Menu
Question Index
...

If the following program is saved in file named "HelloWorld.java", what are the commands for compiling it and running it.

// HelloWorld.java
class Helloworld
{
    public static void main(String s[])
    {
        System.out.println("Hello World");
    }
}


javac HelloWorld.java
java HelloWorld
javac HelloWorld.java
java Helloworld
javac HelloWorld.java
java HelloWorld.java
javac HelloWorld.java
java Helloworld.java

Doubts

Problems

Topic: How to Compile and Run Java Program In Cmd Prompt

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2016 - 2017

All Rights Reserved.

Learn Java Programming from our Experts in 30 Days