单项选择题
将JDBC的属性信息写到jdbc.properties,那么要获取这个属性文件内的信息,当前类的类名是JDBCUtils;以下书写正确的是()
A.JDBCUtils.getRescourceAsStream("jdbc.properties")
B.JDBCUtils.class.getClassLoader().getRescourceAsStream("jdbc.properties")
C.JDBCUtils.getClassLoader().getRescourceAsStream("jdbc.properties")
D.JDBCUtils.class.getRescourceAsStream("jdbc.properties")
点击查看答案&解析
相关考题
-
单项选择题
确认提交事务的命令是()。
A.commit
B.rollback
C.begin -
单项选择题
开启事务的命令是()。
A.begin
B.rollback
C.commit -
单项选择题
利用子查询语句查询出某班级学生年龄大于平均年龄的,以下SQL语句正确的是()。
A.select *from 表名where age in (select avg(age)from 表名);
B.select *from 表名where age>(select count(age)from 表名);
C.select *from 表名where age>(select avg(age)from 表名);
D.select *from 表名where avg(age)>(select avg(age)from 表名);
