niusouti.com

Given:Which statement is true?()A. Compilation succeeds.B. Class A does not compile.C. The method declared on line 9 cannot be modified to throw TestException.D. TestA compiles if line 10 is enclosed in a try/catch block that catches TestException.

题目
Given:Which statement is true?()

A. Compilation succeeds.

B. Class A does not compile.

C. The method declared on line 9 cannot be modified to throw TestException.

D. TestA compiles if line 10 is enclosed in a try/catch block that catches TestException.


相似考题
更多“Given:Which statement is true?() ”相关问题
  • 第1题:

    Refertotheexhibit.GiventheDHCPpoolconfigurationshownonRouterA,theCiscoIPphonewillnotbootupintheTeleworkerlocation.WhatismissingfromtheTeleworkerDHCPpoolconfiguration?()

    A.TheDHCPpoolneedstohaveanimportallstatement.

    B.TheDHCPpoolismissinganoption150ip10.59.138.1statement.

    C.TheDHCPpoolismissinganoption139ip10.59.138.1statement

    D.TheDHCPpoolismissingadns-server10.59.138.1statement.


    参考答案:B

  • 第2题:

    JDBC中Statement表示语句。


    错误

  • 第3题:

    下列选项中,关于Statement描述错误的是()

    A.Statement是用来执行SQL语句的

    B.Statement是PreparedStatement的子接口

    C.获取Statement实现需要使用Connection的createStatement()方法

    D.PreparedStatement能使用参数占位符,而Statement不行


    Statement是PreparedStatement的子接口

  • 第4题:

    下列选项中,关于Statement描述错误的是()

    A.Statement是用来执行SQL语句的

    B.Statement是PreparedStatement的子接口

    C.获取Statement实现需要使用Connection的createStatement()方法

    D.PreparedStatement能使用参数占位符,而Statement不行


    Statement是PreparedStatement的子接口

  • 第5题:

    要按先ResultSet结果集,后Statement,最后Connection的顺序关闭资源,因为Statement和ResultSet是需要连接是才可以使用的,所以在使用结束之后有可能其他的Statement还需要连接,所以不能先关闭Connection。


    正确

  • 第6题:

    3.下列选项中,关于Statement描述错误的是() A: Statement是用来执行SQL语句的 B: Statement是PreparedStatement的子接口 C: 获取Statement实现需要使用Connection的createStatement()方法 D: PreparedStatement能使用参数占位符,而Statement不行

    A.A B C D

    B.A B C D

    C.A B C D

    D.A B C D


    Statement 是 PreparedStatement 的子接口