Efficient way to Handle ResultSet in Java Efficient way to Handle ResultSet in Java java java