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 Dumps Valid Version with 372 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments