QUESTION 33자격증/OCJP_ExamC2018. 7. 24. 20:08
Table of Contents
반응형
QUESTION 33Given:1. public static void main(String[] args) {2. for (int i = 0; i <= 10; i++) {3. if (i > 6) break;4. }5. System.out.println(i);6. }What is the result?A. 6B. 7C. 10D. 11E. Compilation fails.F. An exception is thrown at runtime.Solution : E
plus imformation
Main.java:5: cannot find symbol
symbol : variable i
location: class Breaker
System.out.println(i);
^ 1 error
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 35 (0) | 2018.07.24 |
---|---|
QUESTION 34 (0) | 2018.07.24 |
QUESTION 32 (0) | 2018.07.24 |
QUESTION 31 (0) | 2018.07.24 |
QUESTION 30 (0) | 2018.07.24 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상