ResultSet methods

Report a typo

Given the table:

Shape names and their validity

What is the output of the following code?

try (ResultSet shapes = statement.executeQuery("SELECT * FROM SHAPES ORDER BY ID")) {
    while (shapes.next()) {
        System.out.printf("%s ", shapes.getBoolean(3));
    }
}
Select one option from the list
___

Create a free account to access the full topic