before first method in jdbc code example Example: before first method in jdbc beforeFirst() jumps to row 0. Used to call next() method in while loop.