1z0-809 試験問題 81
次のコードフラグメントがあるとします:

結果はどうなりましたか?

結果はどうなりましたか?
1z0-809 試験問題 82
Assume customers.txt is accessible and contains multiple lines.
Which code fragment prints the contents of the customers.txt file?
Which code fragment prints the contents of the customers.txt file?
1z0-809 試験問題 83
Given the code fragment:
ZonedDateTime depart = ZonedDateTime.of(2015, 1, 15, 3, 0, 0, 0, ZoneID.of("UTC-
7"));
ZonedDateTime arrive = ZonedDateTime.of(2015, 1, 15, 9, 0, 0, 0, ZoneID.of("UTC-
5"));
long hrs = ChronoUnit.HOURS.between(depart, arrive); //line n1
System.out.println("Travel time is" + hrs + "hours");
What is the result?
Travel time is 4 hours
ZonedDateTime depart = ZonedDateTime.of(2015, 1, 15, 3, 0, 0, 0, ZoneID.of("UTC-
7"));
ZonedDateTime arrive = ZonedDateTime.of(2015, 1, 15, 9, 0, 0, 0, ZoneID.of("UTC-
5"));
long hrs = ChronoUnit.HOURS.between(depart, arrive); //line n1
System.out.println("Travel time is" + hrs + "hours");
What is the result?
Travel time is 4 hours
1z0-809 試験問題 84
次のコードフラグメントがあるとします:
LocalDate valentinesDay =LocalDate.of(2015, Month.FEBRUARY, 14);
ローカル日付 nextYear = valentinesDay.plusYears(1);
nextYear.plusDays(15); //行n1
System.out.println(来年)
結果はどうなりましたか?
LocalDate valentinesDay =LocalDate.of(2015, Month.FEBRUARY, 14);
ローカル日付 nextYear = valentinesDay.plusYears(1);
nextYear.plusDays(15); //行n1
System.out.println(来年)
結果はどうなりましたか?
1z0-809 試験問題 85
与えられた条件:
パブリック列挙型 USCurrency {
ペニー(1)
ニッケル(5)
ダイム(10)
四半期(25);
プライベート int 値;
パブリックUSCurrency(int値) {
this.value = 値;
}
public int getValue() {戻り値;}
}
パブリッククラスCoin {
パブリック静的voidメイン(文字列[]引数){
US通貨 usCoin =新しいUS通貨.DIME;
System.out.println(usCoin.getValue()):
}
}
指定されたコードをコンパイルできるようにするには、どの 2 つの変更を加えればよいでしょうか。
パブリック列挙型 USCurrency {
ペニー(1)
ニッケル(5)
ダイム(10)
四半期(25);
プライベート int 値;
パブリックUSCurrency(int値) {
this.value = 値;
}
public int getValue() {戻り値;}
}
パブリッククラスCoin {
パブリック静的voidメイン(文字列[]引数){
US通貨 usCoin =新しいUS通貨.DIME;
System.out.println(usCoin.getValue()):
}
}
指定されたコードをコンパイルできるようにするには、どの 2 つの変更を加えればよいでしょうか。

