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 HelloWorld
javac HelloWorld
java HelloWorld.java
javac HelloWorld.java
java HelloWorld.java
javac HelloWorld.java
java HelloWorld

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 2019

All Rights Reserved.

Open In App