以下程序代码定义了一个ResultSet对象:ResultSet rs= stmt.executeQuery("SELECT NAME,AGE from CUSTOMERS where ID=1");假定以上SQL语句最多只返回一条记录,下面哪些代码能打印结果集中的AGE字段?
A. if(rs.next())System.out.println(rs.getInt(2));
B. if(rs.next())System.out.println(rs.getInt(1));
C. System.out.println(rs.getInt(1));
D. if(rs.next())System.out.println(rs.getInt("AGE"));