Vidyalelo
Java Programming · Q70

Operators

Programming · Java Programming · question 70

Q70

What will be the output of the following Java program? class Output public static void main(String args[]) final int a=10,b=20; while(a<b) System.out.println("Hello"); System.out.println("World");

A.
Hello
B.
run time error
C.
Hello world
D.
compile time error
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board