赞
踩
String字符串是常量,其值不能改变
StringBuilder是线程不安全的,速度更快
StringBuffer是线程安全的,速度比StringBuilder慢
解析:C:JDBC statement中的PreparedStatement的占位符对应着即将与之对应当值,且一个占位符只对应一个值,如能对应多个会引起混淆。sql语句是确定的,一个占位符必定只对应一个值
一些拓展说明
1.Statement、PreparedStatement和CallableStatement都是接口(interface)。
2.Statement继承自Wrapper、PreparedStatement继承自Statement、CallableStatement继承自PreparedStatement。
3.
4.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。