1z0-809-KR 문제 31

주어진:

결과는 어떻게 되나요?

1z0-809-KR 문제 32

주어진 코드 조각:
ZonedDateTime 출발 = ZonedDateTime.of(2015, 1, 15, 1, 0, 0, 0, ZoneID.of("UTC-7")); ZonedDateTime 도착 = ZonedDateTime.of(2015, 1, 15, 9, 0, 0, 0, ZoneID.of("UTC-5")); 긴 시간 = ChronoUnit.HOURS. between(출발, 도착); //line n1 System.out.println("이동 시간은" + hrs + "hours"); 결과는 무엇입니까?

1z0-809-KR 문제 33

주어진 코드 조각:

결과는 무엇입니까?

1z0-809-KR 문제 34

java.time.Duration에 대한 설명으로 옳은 것은?

1z0-809-KR 문제 35

주어진:
class Vehicle implements Comparable<Vehicle>{
int vno;
String name;
public Vehicle (int vno, String name) {
this.vno = vno,;
this.name = name;
}
public String toString () {
return vno + ":" + name;
}
public int compareTo(Vehicle o) {
return this.name.compareTo(o.name);
}
and this code fragment:
Set<Vehicle> vehicles = new TreeSet <> ();
vehicles.add(new Vehicle (10123, "Ford"));
vehicles.add(new Vehicle (10124, "BMW"));
System.out.println(vehicles);
결과는 무엇입니까?