对于以下程序代码:ResultSet rs1= stmt.executeQuery("SELECT NAME from CUSTOMERS where ID=1"); //line1ResultSet rs2= stmt.executeQuery("SELECT NAME from CUSTOMERS where ID=2"); //line2if(rs1.next())System.out.println(rs1.getString(1)); //line3if(rs2.next())System.out.println(rs2.getString(1)); //line4下面哪些说法正确?
A. 编译出错
B. 运行时在第3行抛出异常
C. 编译通过,并且正常运行
D. 运行时在第4行抛出出错