Oracle Java SE 8 Programmer II (1z0-809日本語版) - 1z0-809日本語 Exam Practice Test

コードの断片を考えると:

dbURL、userName、およびpasswordが有効であると仮定します。
コードが接続確立を印刷できるようにするために、n1行目に挿入できるコードフラグメントはどれですか?
Correct Answer: D
与えられた:

単一の実行順序を保証するために、どのような変更を行う必要がありますか(1から100までの値が順番に印刷されます)?
Correct Answer: B
customers.txtにアクセス可能であり、複数の行が含まれていると仮定します。
customers.txtファイルの内容を印刷するコードフラグメントはどれですか?
Correct Answer: D
コードの断片を考えると:

結果は何ですか?
Correct Answer: C
与えられた情報: 従業員テーブルには 10 件のレコードがあります。
次のコードフラグメントを考えてみましょう:

結果はどうなりましたか?
Correct Answer: A
Which code fragment is required to load a JDBC 3.0 driver?
Correct Answer: D
Given the definition of the Country class:
public class country {
public enum Continent {ASIA, EUROPE}
String name;
Continent region;
public Country (String na, Continent reg) {
name = na, region = reg;
}
public String getName () {return name;}
public Continent getRegion () {return region;}
}
and the code fragment:
List<Country> couList = Arrays.asList (
new Country ("Japan", Country.Continent.ASIA),
new Country ("Italy", Country.Continent.EUROPE),
new Country ("Germany", Country.Continent.EUROPE));
Map<Country.Continent, List<String>> regionNames = couList.stream ()
.collect(Collectors.groupingBy (Country ::getRegion,
Collectors.mapping(Country::getName, Collectors.toList()))));
System.out.println(regionNames);
What is the output?
Correct Answer: A

とコードの断片?

結果は何ですか?
Correct Answer: C
与えられた:
IntStream stream = IntStream.of (1,2,3);
IntFunction<Integer> inFu= x -> y -> x*y;//line n1
IntStream newStream = stream.map(inFu.apply(10));//line n2
newStream.forEach(System.out::print);
どの修正により、コードフラグメントをコンパイルできますか?
Correct Answer: B
コードの断片を考えると:

と仮定する:
必要なデータベースドライバーは、クラスパスで構成されます。適切なデータベースは、dbURL、userName、およびpassWordを使用してアクセスできます。Employeeテーブルには整数型の列IDがあり、SQLクエリは1つのレコードと一致します。
結果は何ですか?
Correct Answer: D
0
0
0
0