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.
第1题:
A.TheDHCPpoolneedstohaveanimportallstatement.
B.TheDHCPpoolismissinganoption150ip10.59.138.1statement.
C.TheDHCPpoolismissinganoption139ip10.59.138.1statement
D.TheDHCPpoolismissingadns-server10.59.138.1statement.
第2题:
JDBC中Statement表示语句。
第3题:
下列选项中,关于Statement描述错误的是()
A.Statement是用来执行SQL语句的
B.Statement是PreparedStatement的子接口
C.获取Statement实现需要使用Connection的createStatement()方法
D.PreparedStatement能使用参数占位符,而Statement不行
第4题:
下列选项中,关于Statement描述错误的是()
A.Statement是用来执行SQL语句的
B.Statement是PreparedStatement的子接口
C.获取Statement实现需要使用Connection的createStatement()方法
D.PreparedStatement能使用参数占位符,而Statement不行
第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