1.给出以下代码: ? 
if(x>0) {System.out.println("first");} 
else if(x>-3){System.out.println("second");} 
else{System.out.println("third");} 
x的取值在什么范围内时将打印字符串"second" 
A. x > 3 
B. x > -3 
C. x <= -3 
D. x <= 0 & > -3 
2.如果有多条sql语句需要经常使用,对于系统结构来说,以下方法中效率最高的是? 
A. 将sql语句放在一个静态方法中供调用 
B. 使用数据库存储过程实现 
C. 将sql语句写在一起当作一个字符串执行 
D. 对于每个sql语句都判断异常 3.你是否能强制转换一个对象进行垃圾收集? 
A garbage collection cannot be forced 
B call System.gc(). 
C Call System.gc(),passing in a reference to the object to be garbage collected 
D Call Runtime.gc(). 
E Set all references to the object to new values (null,for example). 
4.Java什么情况下需要考虑线程安全问题? 
答: 
特别是第四题说详细点,谢谢 
小生在此感谢大家了。