Menu
Question Index
...

What will be the output of the following program.

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


The program causes a compilation error since the class name is in small
letters. It will work if the class name was HelloUniverse
The program causes a compilation error since the class name is
hellouniverse, but we are printing Hello World
Hello Universe
Hello World

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 2016 - 2017

All Rights Reserved.

Learn Java Programming from our Experts in 30 Days