MCQs > IT & Programming > JDBC > The code segment below defines a query: String qry='SELECT CUS_NAME, PRICE FROM CUSTOMER'; Which of the following code snippets will create a scrollable ResultSet?

JDBC MCQs

The code segment below defines a query:

String qry="SELECT CUS_NAME, PRICE FROM CUSTOMER";

Which of the following code snippets will create a scrollable ResultSet?



Answer

Correct Answer: Statement st=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); <br>ResultSet srs=st.executeQuery(qry);<br>

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JDBC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JDBC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it