23/12/2008

Some questions about Java

Collection
To know all about Collection interface, subinterfaces and implementation.
For example:
  • subinterface List, Set and Map
  • class ArrayList, HashSet, HasMap (what are the differences between each class?)
JEE
List of specifications (Webservices, annotations, JSF, JSP, Servlet, EJB, JMS, etc.)

Transation
There are times when you do not want one statement to take effect unless another one completes.
The way to allow two or more statements to be grouped into a transaction is to disable auto-commit mode.
A SQLException should call a rollback.

Exception
unchecked exception is a subclass or RuntimeException and Error (NullPointerException, ClassCastException, etc.)

Design patterns
Singleton, prototype, Decorator, Facade, Factory, Proxy, ...