1.

Which of the following is used to limit the number of rows returned?(a) setMaxRows(int i)(b) setMinRows(int i)(c) getMaxrows(int i)(d) getMinRows(int i)I have been asked this question during an interview.My question is based upon JDBC topic in chapter Java Beans & JDBC of Java

Answer»

Correct ANSWER is (a) setMaxRows(INT i)

To explain: setMaxRows(int i) METHOD is used to limit the NUMBER of rows that the database returns from the query.



Discussion

No Comment Found

Related InterviewSolutions