Examveda
Examveda

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: Option D


This Question Belongs to Java Program >> Operators

Join The Discussion

Related Questions on Operators