Friday, March 17, 2006

Generics!!

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!

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.

Sunday, March 05, 2006

just noting down all the things that I need to revice / do newly for getting thru the java 5 exam.
New:
1. assertions (1.4)
2. regex
3. Autoboxing, Srting builder
4. covariance
5. RegExp

revise:
1. Sun free question samples
2. basic examples of various exceptions.
3. static imports