首页题库练习题目详情
Java语言程序设计单选题中等

以下哪项代码可以正确遍历一个ResultSet对象?

Awhile (rs.next()) { ... }
Bfor (int i=0; i < rs.size(); i++) { rs.next(); }
Cwhile (rs.hasNext()) { ... }
Dwhile (rs.nextRow()) { ... }