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

Given:
java
DoubleStream doubleStream = DoubleStream.of(3.3, 4, 5.25, 6.66);
Predicate<Double> doublePredicate = d -> d < 5;
System.out.println(doubleStream.anyMatch(doublePredicate));
What is printed?

解説: (JPNTest メンバーにのみ表示されます)
Given:
java
String colors = "red\n" +
"green\n" +
"blue\n";
Which text block can replace the above code?

解説: (JPNTest メンバーにのみ表示されます)
What do the following print?
java
public class Main {
int instanceVar = staticVar;
static int staticVar = 666;
public static void main(String args[]) {
System.out.printf("%d %d", new Main().instanceVar, staticVar);
}
static {
staticVar = 42;
}
}

解説: (JPNTest メンバーにのみ表示されます)
Given:
java
Object input = 42;
String result = switch (input) {
case String s -> "It's a string with value: " + s;
case Double d -> "It's a double with value: " + d;
case Integer i -> "It's an integer with value: " + i;
};
System.out.println(result);
What is printed?

解説: (JPNTest メンバーにのみ表示されます)
Which three of the following are correct about the Java module system?

正解:A、C、E 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
Given:
java
var array1 = new String[]{ "foo", "bar", "buz" };
var array2[] = { "foo", "bar", "buz" };
var array3 = new String[3] { "foo", "bar", "buz" };
var array4 = { "foo", "bar", "buz" };
String array5[] = new String[]{ "foo", "bar", "buz" };
Which arrays compile? (Select 2)

正解:D、E 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
Given:
java
List<String> frenchAuthors = new ArrayList<>();
frenchAuthors.add("Victor Hugo");
frenchAuthors.add("Gustave Flaubert");
Which compiles?

正解:A、C、D 解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
Given:
java
var deque = new ArrayDeque<>();
deque.add(1);
deque.add(2);
deque.add(3);
deque.add(4);
deque.add(5);
System.out.print(deque.peek() + " ");
System.out.print(deque.poll() + " ");
System.out.print(deque.pop() + " ");
System.out.print(deque.element() + " ");
What is printed?

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

弊社を連絡する

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

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

サポート:現在連絡