Impact of java.sql.Connection.close() on java.sql.Statement objects and the like
- by Bytecode Ninja
Does closing a java.sql.Connection also close all the statements, prepared statements, etc. obtained from that connection? Or is there going to be memory leak if I close the connection but leave the statements, etc. unclosed?