1z0-809 Korean 無料問題集「Oracle Java SE 8 Programmer II (1z0-809 Korean Version)」
주어진 코드 조각:
ZonedDateTime 출발 = ZonedDateTime.of(2015, 1, 15, 3, 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"); 결과는 무엇입니까?
ZonedDateTime 출발 = ZonedDateTime.of(2015, 1, 15, 3, 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"); 결과는 무엇입니까?
正解:D
解答を投票する
주어진:
class Bird {
public void fly () { System.out.print("Can fly"); }
}
class Penguin extends Bird {
public void fly () { System.out.print("Cannot fly"); }
}
and the code fragment:
class Birdie {
public static void main (String [ ] args) {
fly( ( ) -> new Bird ( ));
fly (Penguin : : new);
}
/* line n1 */
}
다음 중 n1번째 줄에 삽입하면 Birdie 클래스를 컴파일할 수 있는 코드 조각은 무엇입니까?
class Bird {
public void fly () { System.out.print("Can fly"); }
}
class Penguin extends Bird {
public void fly () { System.out.print("Cannot fly"); }
}
and the code fragment:
class Birdie {
public static void main (String [ ] args) {
fly( ( ) -> new Bird ( ));
fly (Penguin : : new);
}
/* line n1 */
}
다음 중 n1번째 줄에 삽입하면 Birdie 클래스를 컴파일할 수 있는 코드 조각은 무엇입니까?
正解:A
解答を投票する
주어진:
항목 테이블
* 아이디, 정수: PK
* 설명, VARCHAR(100)
* 가격, 실제
* 수량< 정수
그리고 주어진 코드 조각:
9. try {
10.Connection conn = DriveManager.getConnection(dbURL, username, password);
11. String query = "Select * FROM Item WHERE ID = 110";
12. Statement stmt = conn.createStatement();
13. ResultSet rs = stmt.executeQuery(query);
14.while(rs.next()) {
15.System.out.println("ID:" + rs.getInt("Id"));
16.System.out.println("Description:" + rs.getString("Descrip"));
17.System.out.println("Price:" + rs.getDouble("Price"));
18. System.out.println(Quantity:" + rs.getInt("Quantity"));
19.}
20. } catch (SQLException se) {
21. System.out.println("Error");
22. }
다음과 같이 가정합니다.
필수 데이터베이스 드라이버는 클래스 경로에 구성됩니다.
dbURL, userName 및 passWord가 있는 적절한 데이터베이스에 액세스할 수 있습니다.
SQL 쿼리가 유효합니다.
결과는 무엇입니까?
항목 테이블
* 아이디, 정수: PK
* 설명, VARCHAR(100)
* 가격, 실제
* 수량< 정수
그리고 주어진 코드 조각:
9. try {
10.Connection conn = DriveManager.getConnection(dbURL, username, password);
11. String query = "Select * FROM Item WHERE ID = 110";
12. Statement stmt = conn.createStatement();
13. ResultSet rs = stmt.executeQuery(query);
14.while(rs.next()) {
15.System.out.println("ID:" + rs.getInt("Id"));
16.System.out.println("Description:" + rs.getString("Descrip"));
17.System.out.println("Price:" + rs.getDouble("Price"));
18. System.out.println(Quantity:" + rs.getInt("Quantity"));
19.}
20. } catch (SQLException se) {
21. System.out.println("Error");
22. }
다음과 같이 가정합니다.
필수 데이터베이스 드라이버는 클래스 경로에 구성됩니다.
dbURL, userName 및 passWord가 있는 적절한 데이터베이스에 액세스할 수 있습니다.
SQL 쿼리가 유효합니다.
결과는 무엇입니까?
正解:D
解答を投票する