1.

What is the output of this program?public class Result { public static void main(String args[]) { final int p=10, q=20; while(p>q) { System.out.println("Hello"); } System.out.println("Java"); } }

A. compile time error
B. Hello world
C. run time error
D. Hello
E. None of these
Answer» B. Hello world


Discussion

No Comment Found