Examveda
Examveda

What will be the output of the following Java program?
class Output 
{
    public static void main(String args[]) 
    {    
         int a = 5;
         int b = 10;
         first: 
         {
            second: 
            {
               third: 
               { 
                   if (a ==  b >> 1)
                       break second;
               }
               System.out.println(a);
            }
            System.out.println(b);
         }
    } 
}

A. 5 10

B. 10 5

C. 5

D. 10

Answer: Option D


This Question Belongs to Java Program >> Operators

Join The Discussion

Related Questions on Operators