This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Dear sir by the above code Result set will be type forward only. As we know that in static sql statment we add a method like con.createStatment(int,int,int); by this statement we change the state of result set like ResultSet.TYPE_SCROLL_SENSITIVE etc but with the preParedStatemnt what i have to add so that we can change the state of ResultSet in the above code it's throwing a Exception that ResultSet is type forward only.by following code System.out.println(rs.isBeforeFirst());