使用DriverManager类的静态方法()建立到指定数据库的连接。
A. getLogStrea()
B. Connection()
C. getConnection()
D. getDriver()
查看答案
获取到连接之后,使用Connection接口的( )方法获取Statement对象。
A. prepareStatement()
B. createStatement()
C. getConnection()
D. prepareCall()
释放数据库连接Connection的方法是通过调用Connection的()方法。
A. isClosed()
B. commit()
C. getConnection()
D. close()
获取到了Statement对象之后,使用executeQuery方法执行查询语句得到( )类型的结果集。
A. isClosed
B. ResultSet
C. int
D. float
获取到了Statement对象之后,使用executeUpdate方法执行增加、删除、修改语句得到( )类型的记录数。
A. float
B. int
C. ResultSet
D. String