Skip to content
Advertisement

Creating JDBC Application

I have this piece of code:

but I have this error:

Advertisement

Answer

Since you commented out your print statement, your loop is now closing the connection (and all of its dependent resources). Your code, without the commented out line:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement