网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
模型层中有这段代码:Class.forName("oracle.jdbc.OracleDriver");此时需要捕捉()。

A.ClassNotFoundException

B.SQLException

C.NullPointerException

D.ArrayIndexOutOfBoundsException?


参考答案

更多 “ 模型层中有这段代码:Class.forName("oracle.jdbc.OracleDriver");此时需要捕捉()。 A.ClassNotFoundExceptionB.SQLExceptionC.NullPointerExceptionD.ArrayIndexOutOfBoundsException? ” 相关考题
考题 您写了下面这段代码 public delegate void FaxDocs(object sender, FaxArgs args); 您需要创建一个事件去调用FaxDocs,您应该使用哪个代码片段?() A.B.C.D.

考题 在模型层中,下列()负责连接数据库 A.Class.forName("oracle.jdbc.OracleDriver");B.conn=DriverManager.getConnection(url,username,userpwd);C.stmt=conn.prepareStatement(sql);D.privateStringurl="jdbc:oracle:thin:@localhost:1521:orcl";

考题 在模型层中,下列()负责加载驱动类 A.Class.forName("oracle.jdbc.OracleDriver");B.conn=DriverManager.getConnection(url,username,userpwd);C.stmt=conn.prepareStatement(sql);D.privateStringurl="jdbc:oracle:thin:@localhost:1521:orcl";

考题 在程序中,若某段代码需要被反复使用,则可以将这段代码封装成()。A.函数B.列表C.分支D.表达式

考题 下列说法不正确的是()A.表示层需要添加数据访问层、业务逻辑层和模型层的引用B.数据访问层需要添加模型层的引用C.模型层需要添加数据访问层的引用D.业务逻辑层需要添加数据访问层的引用

考题 下面的代码是连接哪个数据库的驱动加载片段()。 try{ Class.forName("oracle.jdbc.driver.OracleDriver"); } catch(Exception e){ out.print(e.toString()); }A.OracleB.Sql ServerC.MySqlD.不确定

考题 4、下列说法不正确的是()A.数据访问层需要添加模型层的引用B.业务逻辑层需要添加数据访问层的引用C.表示层需要添加数据访问层、业务逻辑层和模型层的引用D.模型层需要添加数据访问层的引用

考题 下面的代码是连接哪个数据库的驱动程序加载片段:() try{ Class.forName(com.mysql.jdbc.Driver );} catch(Exception e){ out.print(e.toString());}A.OracleB.Sql ServerC.MysqlD.不确定

考题 下面的代码是连接哪个数据库的驱动加载片段() try{ Class.forName("oracle.jdbc.driver.OracleDriver"); } catch(Exception e){ out.print(e.toString()); }A.OracleB.Sql ServerC.MySqlD.不确定