Menu
Question Index
...

What will be the output of the following program.

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


Program does not compile since the keyword class should start with capital C
Hello World
Program does not compile since the variable name of the arguments is t.
The name should be either s or args
HelloWorld

Doubts

Problems

Topic: Java Sample Program - Simple Hello World Program In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App