I was wondering why do you have to explicitly close PreparedStatements
in Java. When you close the session should they not be closed automatically ?
We recently had a situation at work where apps deployed on bluemix had memory issues and the reason given was that prepared statements were not getting closed. That being said,
- Does bluemix not have a feature where it automatically clears memory of last session?
- Should all resources tied to an object get released automatically with the session?