최신 1z0-830 무료덤프 - Oracle Java SE 21 Developer Professional
A module com.eiffeltower.shop with the related sources in the src directory.
That module requires com.eiffeltower.membership, available in a JAR located in the lib directory.
What is the command to compile the module com.eiffeltower.shop?
That module requires com.eiffeltower.membership, available in a JAR located in the lib directory.
What is the command to compile the module com.eiffeltower.shop?
정답: C
설명: (DumpTOP 회원만 볼 수 있음)
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?
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?
정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Given:
java
var frenchCities = new TreeSet<String>();
frenchCities.add("Paris");
frenchCities.add("Marseille");
frenchCities.add("Lyon");
frenchCities.add("Lille");
frenchCities.add("Toulouse");
System.out.println(frenchCities.headSet("Marseille"));
What will be printed?
java
var frenchCities = new TreeSet<String>();
frenchCities.add("Paris");
frenchCities.add("Marseille");
frenchCities.add("Lyon");
frenchCities.add("Lille");
frenchCities.add("Toulouse");
System.out.println(frenchCities.headSet("Marseille"));
What will be printed?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
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?
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?
정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Given:
java
interface SmartPhone {
boolean ring();
}
class Iphone15 implements SmartPhone {
boolean isRinging;
boolean ring() {
isRinging = !isRinging;
return isRinging;
}
}
Choose the right statement.
java
interface SmartPhone {
boolean ring();
}
class Iphone15 implements SmartPhone {
boolean isRinging;
boolean ring() {
isRinging = !isRinging;
return isRinging;
}
}
Choose the right statement.
정답: C
설명: (DumpTOP 회원만 볼 수 있음)
Given:
java
interface Calculable {
long calculate(int i);
}
public class Test {
public static void main(String[] args) {
Calculable c1 = i -> i + 1; // Line 1
Calculable c2 = i -> Long.valueOf(i); // Line 2
Calculable c3 = i -> { throw new ArithmeticException(); }; // Line 3
}
}
Which lines fail to compile?
java
interface Calculable {
long calculate(int i);
}
public class Test {
public static void main(String[] args) {
Calculable c1 = i -> i + 1; // Line 1
Calculable c2 = i -> Long.valueOf(i); // Line 2
Calculable c3 = i -> { throw new ArithmeticException(); }; // Line 3
}
}
Which lines fail to compile?
정답: G
설명: (DumpTOP 회원만 볼 수 있음)
Given:
java
var ceo = new HashMap<>();
ceo.put("Sundar Pichai", "Google");
ceo.put("Tim Cook", "Apple");
ceo.put("Mark Zuckerberg", "Meta");
ceo.put("Andy Jassy", "Amazon");
Does the code compile?
java
var ceo = new HashMap<>();
ceo.put("Sundar Pichai", "Google");
ceo.put("Tim Cook", "Apple");
ceo.put("Mark Zuckerberg", "Meta");
ceo.put("Andy Jassy", "Amazon");
Does the code compile?
정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following can be the body of a lambda expression?
정답: A
설명: (DumpTOP 회원만 볼 수 있음)