Beware of Erasure...
The code that u think is rock solid at compile time.. at the end of compilation .. will be stripped off of the all the Generic coding. and hence the type safety will not be present in runtime..
while writing the java exam.. i always must consider ths point. whether the queestion is at runtime or at compiletime!
Friday, March 17, 2006
Connection Pool and statement objects!
When using connection pools, and when calling
close() on the connection object, the connection returns to the pool for reuse. It doesn't actually close the connection. Thus, the associated Statement and ResultSet objects remain in the memory. Hence, JDBC Statement and ResultSet objects must be explicitly closed in a finally block.
Subscribe to:
Comments (Atom)
