1z1-830 無料問題集「Oracle Java SE 21 Developer Professional」

Given:
java
Stream<String> strings = Stream.of("United", "States");
BinaryOperator<String> operator = (s1, s2) -> s1.concat(s2.toUpperCase()); String result = strings.reduce("-", operator); System.out.println(result); What is the output of this code fragment?

解説: (JPNTest メンバーにのみ表示されます)
Given:
java
List<Long> cannesFestivalfeatureFilms = LongStream.range(1, 1945)
.boxed()
.toList();
try (var executor = Executors.newVirtualThreadPerTaskExecutor()) {
cannesFestivalfeatureFilms.stream()
.limit(25)
.forEach(film -> executor.submit(() -> {
System.out.println(film);
}));
}
What is printed?

解説: (JPNTest メンバーにのみ表示されます)
Which of the following statements is correct about a final class?

解説: (JPNTest メンバーにのみ表示されます)
Given:
java
Deque<Integer> deque = new ArrayDeque<>();
deque.offer(1);
deque.offer(2);
var i1 = deque.peek();
var i2 = deque.poll();
var i3 = deque.peek();
System.out.println(i1 + " " + i2 + " " + i3);
What is the output of the given code fragment?

解説: (JPNTest メンバーにのみ表示されます)
Given:
java
CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();
list.add("A");
list.add("B");
list.add("C");
// Writing in one thread
new Thread(() -> {
list.add("D");
System.out.println("Element added: D");
}).start();
// Reading in another thread
new Thread(() -> {
for (String element : list) {
System.out.println("Read element: " + element);
}
}).start();
What is printed?

解説: (JPNTest メンバーにのみ表示されます)
You are working on a module named perfumery.shop that depends on another module named perfumery.
provider.
The perfumery.shop module should also make its package perfumery.shop.eaudeparfum available to other modules.
Which of the following is the correct file to declare the perfumery.shop module?

解説: (JPNTest メンバーにのみ表示されます)
Which of the followingisn'ta correct way to write a string to a file?

解説: (JPNTest メンバーにのみ表示されます)
Given:
java
System.out.print(Boolean.logicalAnd(1 == 1, 2 < 1));
System.out.print(Boolean.logicalOr(1 == 1, 2 < 1));
System.out.print(Boolean.logicalXor(1 == 1, 2 < 1));
What is printed?

解説: (JPNTest メンバーにのみ表示されます)

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡