I have a table like this
Signup table
Login_id Address User_type state
1 Ansari s Alaska
2 Rajesh b Rameshwaram
String retrieve_query="select User_type from Signup where State="Alaska";
ResultSet rs1=st.executeQuery(retrieve_query);
String User_type=rs1.getString("User_type");//I expect "S" to be the User_type
But i am getting the following exception
Exception occured java.sql.SQLException: Operation not allowed after ResultSet closed