1.

Consider the following program written in Java.class Test{public static void main(String args[]){int x=7;if(x==2); // Note the semicolonSystem.out.println("NumberSeven");System.out.println("NotSeven");}}What would the output of the program be?

A. umberSeven NotSeven
B. umberSeven
C. otSeven
D. rror
Answer» B. umberSeven


Discussion

No Comment Found