Question

    ._______ method can be used for any SQL statements(Select and Update both).

    A executeQuery Correct Answer Incorrect Answer
    B executeUpdate Correct Answer Incorrect Answer
    C execute Correct Answer Incorrect Answer
    D All of the above Correct Answer Incorrect Answer
    E Both 1 and 2 Correct Answer Incorrect Answer

    Solution

    The execute method can be used for any SQL statements(Select and Update both). The execute method returns a boolean type value where true indicates that the ResultSet s returned which can later be extracted and false indicates that the integer or void value is returned.

    Practice Next