What is the value of x after the code segment executes?
What is the value of x after the code segment executes?
String x = ‘A’;
Integer i = 10;
if ( i < 15 )
{i = 15; x = ‘B’;}
else if ( i < 20 ) {x = ‘C’;}
else {x = ‘D’; }
A . D
B . A
C . B
D . C
Answer: C
Latest CRT-450 Practice Questions with 372 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments