A, C和D是正确的描述。

A. 在一个Connection中,可以存在多个Statement对象。每个Statement对象用于执行一个SQL语句。

C. Driver可以创建Statement对象。Driver是一个Java接口,用于连接Java应用程序和数据库。通过DriverManager类的getConnection()方法,可以获取到Driver对象,并通过Driver对象创建Statement对象。

D. DriverManager创建Statement。DriverManager是一个Java类,用于管理多个数据库驱动程序。通过DriverManager类的getConnection()方法,可以获取到一个Connection对象,然后通过Connection对象创建Statement对象。

描述Statement对象正确的是 5分A在一个Connection中会存在多个Statement对象BStatement对象不需要关闭CDriver可以创建Statement对象D DriverManager创建 Statement

原文地址: https://www.cveoy.top/t/topic/ihQ1 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录