1z0-809 試験問題 11
Given that course.txt is accessible and contains:
Course : : Java
and given the code fragment:
public static void main (String[ ] args) {
int i;
char c;
try (FileInputStream fis = new FileInputStream (“course.txt”);
InputStreamReader isr = new InputStreamReader(fis);) {
while (isr.ready()) { //line n1
isr.skip(2);
i = isr.read ();
c = (char) i;
System.out.print(c);
}
} catch (Exception e) {
e.printStackTrace();
}
}
What is the result?
ur :: va
Course : : Java
and given the code fragment:
public static void main (String[ ] args) {
int i;
char c;
try (FileInputStream fis = new FileInputStream (“course.txt”);
InputStreamReader isr = new InputStreamReader(fis);) {
while (isr.ready()) { //line n1
isr.skip(2);
i = isr.read ();
c = (char) i;
System.out.print(c);
}
} catch (Exception e) {
e.printStackTrace();
}
}
What is the result?
ur :: va
1z0-809 試験問題 12
内容は次のとおりです:

次のコードフラグメントが与えられます:

どの 2 つのコード フラグメントを 1 行目に独立して挿入すると、コードが「Wie geht's」を印刷できるようになりますか。

次のコードフラグメントが与えられます:

どの 2 つのコード フラグメントを 1 行目に独立して挿入すると、コードが「Wie geht's」を印刷できるようになりますか。
1z0-809 試験問題 13
Given:

What change should you make to guarantee a single order of execution (printed values 1 -100 in order)?

What change should you make to guarantee a single order of execution (printed values 1 -100 in order)?
1z0-809 試験問題 14
Given the code fragment:

What is the result ?

What is the result ?
1z0-809 試験問題 15
次のコードフラグメントがあるとします:
List<String> str = Arrays.asList ("my", "pen", "is", "your', "pen");
述語<文字列> テスト = s -> {
整数 i = 0;
ブール値の結果 = s.contains("pen");
System.out.print(i++) + ":");
結果を返します。
};
str.stream()
. フィルター(テスト)
.findFirst()
. ifPresent(System.out ::print);
結果はどうなりましたか?
List<String> str = Arrays.asList ("my", "pen", "is", "your', "pen");
述語<文字列> テスト = s -> {
整数 i = 0;
ブール値の結果 = s.contains("pen");
System.out.print(i++) + ":");
結果を返します。
};
str.stream()
. フィルター(テスト)
.findFirst()
. ifPresent(System.out ::print);
結果はどうなりましたか?

