What is the output of the following program?
class ExamPrep {
public static void main(String[] args){
int a = 4;
int b = 3;
int result = a < b ? 1 : 2;
System.out.println(result);
}
}
Choose the correct answer:
A. 1
B. 2
C. 3
D. 4
E. This code will not compile
F. This code will fail with an exception at runtime