QUESTION 32자격증/OCJP_ExamA2018. 7. 1. 01:28
Table of Contents
반응형
Given:
public void go()
{
String o = "";
z:
for(int x = 0; x < 3; x++)
{
for(int y = 0; y < 2; y++)
{
if(x==1) break;
if(x==2 && y==1) break z;
o = o + x + y;
}
}
System.out.println(o);
}
What is the result when the go() method is invoked?
A. 00
B. 0001
C. 000120
D. 00012021
E. Compilation fails.
F. An exception is thrown at runtime.
Solution : C
반응형
'자격증 > OCJP_ExamA' 카테고리의 다른 글
QUESTION 34 (0) | 2018.07.06 |
---|---|
QUESTION 33 (0) | 2018.07.06 |
QUESTION 31 (0) | 2018.07.01 |
QUESTION 30 (0) | 2018.07.01 |
QUESTION 29 (0) | 2018.07.01 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상