최신 1z1-809日本語 무료덤프 - Oracle Java SE 8 Programmer II (1z1-809日本語版)

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

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

정답: C
コードの断片を考えると:
public static void main (String [ ] args) throws IOException {
BufferedReader br = new BufferedReader (new InputStremReader
(System.in));
System.out.print ("Enter GDP: ");
//line 1
}
Which code fragment, when inserted at line 1, enables the code to read the GDP from the user?

정답: B
STUDENTテーブルの構造を考えます:
学生(id INTEGER、name VARCHAR)
与えられた:
public class Test {
static Connection newConnection =null;
public static Connection get DBConnection () throws SQLException {
try (Connection con = DriveManager.getConnection(URL, username, password)) { newConnection = con;
}
return newConnection;
}
public static void main (String [] args) throws SQLException {
get DBConnection ();
Statement st = newConnection.createStatement();
st.executeUpdate("INSERT INTO student VALUES (102, 'Kelvin')");
}
}
と仮定する:
必要なデータベースドライバーは、クラスパスで構成されます。
適切なデータベースにアクセスするには、URL、userName、およびpassWordを使用します。
SQLクエリは有効です。
結果は何ですか?

정답: B
Empクラスの定義が与えられた場合:
public class Emp
private String eName;
private Integer eAge;
Emp(String eN, Integer eA) {
this.eName = eN;
this.eAge = eA;
}
public Integer getEAge () {return eAge;}
public String getEName () {return eName;}
}
およびコードの断片:
List<Emp>li = Arrays.asList(new Emp("Sam", 20), New Emp("John", 60), New Emp("Jim", 51)); Predicate<Emp> agVal = s -> s.getEAge() <= 60;//line n1 li = li.stream().filter(agVal).collect(Collectors.toList()); Stream<String> names = li.stream()map.(Emp::getEName);//line n2 names.forEach(n -> System.out.print(n + " ")); 結果は何ですか?

정답: B
与えられた:
public class Product {
int id; int price;
public Product (int id, int price) {
this.id = id;
this.price = price;
}
Public String toString () { return id + ":" + price;)
}
and the code fragment:
List<Product> products = new ArrayList <> (Arrays.asList(new Product(1, 10), new Product (2, 30), new Product (3, 20)); Product p = products.stream().reduce(new Product (4, 0), (p1, p2) -> { p1.price+=p2.price; return new Product (p1.id, p1.price);}); products.add(p); products.stream().parallel()
.reduce((p1, p2) - > p1.price > p2.price ? p1 : p2)
.ifPresent(System.out: :println);
結果は何ですか?

정답: D
customers.txtにアクセス可能であり、複数の行が含まれていると仮定します。
customers.txtファイルの内容を印刷するコードフラグメントはどれですか?

정답: A
In 2015, daylight saving time in New York, USA, begins on March 8th at 2:00 AM. As a result,
2:00 AM becomes 3:00 AM.
Given the code fragment:

Which is the result?

정답: A
コードの断片を考えると:
List<Integer> nums = Arrays.asList (10, 20, 8):
System.out.println (
//line n1
);
Which code fragment must be inserted at line n1 to enable the code to print the maximum number in the nums list?

정답: D
Given the definition of the Employee class:

and this code fragment:

結果は何ですか?

정답: C
java.util.function.Predicateインターフェースの単一の抽象メソッドについて正しい記述はどれですか?

정답: A
설명: (DumpTOP 회원만 볼 수 있음)

우리와 연락하기

문의할 점이 있으시면 메일을 보내오세요. 12시간이내에 답장드리도록 하고 있습니다.

근무시간: ( UTC+9 ) 9:00-24:00
월요일~토요일

서포트: 바로 연락하기