About Question com.enthuware.jfcja.v8.2.283 :
Posted: Sun Jun 07, 2020 3:34 pm
This question requires us to pick 3 options where the code compiles correctly, however, per the explanation, only 2 of the options are valid. What are we supposed to do when the instructions don't match the number of valid answers?
for( int i = 0; i< 0; i++) x = 3; is said to be a correct option, however later it says
"for( int i = 0; false; i++) x = 3; is also a compile time error because x= 3 is unreachable."
It seems like it is impossible to correctly answer this question.
for( int i = 0; i< 0; i++) x = 3; is said to be a correct option, however later it says
"for( int i = 0; false; i++) x = 3; is also a compile time error because x= 3 is unreachable."
It seems like it is impossible to correctly answer this question.