isBeforeFirst()

Syntax:

boolean isBeforeFirst()
                      throws SQLException

Description:

Retrieves whether the cursor is before the first row in this ResultSet object.

Returns:

true if the cursor is before the first 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.isBeforeFirst()