isAfterLast()

Syntax:

boolean isAfterLast()
                    throws SQLException

Description:

Retrieves whether the cursor is after the last row in this ResultSet object.

Returns:

true if the cursor is after the last row; false if the cursor is at any other position or the result set contains no rows

Throws:

SQLException - if a database access error occurs or this method is called on a closed result set

Reference:

For more information, reference JDBC documentation for: ResultSet.isAfterLast()