Computer Science, asked by MananSanghavi, 1 month ago

Write a program in java to print Hello world.​

Answers

Answered by admax1159
4

Answer:

u can write it in two ways

System.out.print("hello");

System.out.print("world");

System.out.print("java");

The output to the above three will be:

helloworldjava

System.out.println("hello");

System.out.println("world");

System.out.println("java");

the output will be:

hello

world

java

to print a blank line:

System.out.println();

the output will be:

[Blank Line]

Explanation:

Answered by jayeshkale052
2

console. log(" Hello")

Similar questions