单项选择题

获得可滚动可更新ResultSet对象rs中记录数量的正确方法是()。

A.int n =rs.getrow();
B.rs.last();int n =rs.getNo();
C.rs.last();int n =rs.getrow();
D.rs.getRecordCount();