you can get resultset.next() value to check if the result set is empty or not.for getting the number of result :: you can count it by an iteration on resultset.next()