Oracle Java SE 11 Programmer II - 1Z0-816무료 덤프문제 풀어보기
Given:

Which option should you choose to enable the code to print Something happened?

Which option should you choose to enable the code to print Something happened?
정답: B
설명: (Fast2test 회원만 볼 수 있음)
Given:
LocalDate d1 = LocalDate.of(1997,2,7);
DateTimeFormatter dtf =
DateTimeFormatter.ofPattern( /*insert code here*/ );
System.out.println(dtf.format (d1));
Which pattern formats the date as Friday 7th of February 1997?
LocalDate d1 = LocalDate.of(1997,2,7);
DateTimeFormatter dtf =
DateTimeFormatter.ofPattern( /*insert code here*/ );
System.out.println(dtf.format (d1));
Which pattern formats the date as Friday 7th of February 1997?
정답: D
Which two safely validate inputs? (Choose two.)
정답: B,C
설명: (Fast2test 회원만 볼 수 있음)
Given:

You want to use the myResource class in a try-with-resources statement. Which change will accomplish this?

You want to use the myResource class in a try-with-resources statement. Which change will accomplish this?
정답: D
설명: (Fast2test 회원만 볼 수 있음)
A bookstore's sales are represented by a list of Sale objects populated with the name of the customer and the books they purchased.
public class Sale {
private String customer;
private List<Book> items;
// constructor, setters and getters not shown
}
public class Book {
private String name;
private double price;
// constructor, setters and getters not shown
}
Given a list of Sale objects, tList, which code fragment creates a list of total sales for each customer in ascending order?

public class Sale {
private String customer;
private List<Book> items;
// constructor, setters and getters not shown
}
public class Book {
private String name;
private double price;
// constructor, setters and getters not shown
}
Given a list of Sale objects, tList, which code fragment creates a list of total sales for each customer in ascending order?

정답: A
Which is a proper JDBC URL?
정답: B
설명: (Fast2test 회원만 볼 수 있음)
Assuming the Widget class has a getPrice method, this code does not compile:

Which two statements, independently, would allow this code to compile? (Choose two.)

Which two statements, independently, would allow this code to compile? (Choose two.)
정답: A,C
Given:
public class X {
}
and
public final class Y extends X {
}
What is the result of compiling these two classes?
public class X {
}
and
public final class Y extends X {
}
What is the result of compiling these two classes?
정답: A
설명: (Fast2test 회원만 볼 수 있음)