"Ease of Development" is one of the main focuses in J2SE 5. Accordingly, J2SE
5 introduces several new features designed to simplify the developer's life.
If you use these new constructs, your code will become more compact and
expressive, hence easier to understand and debug. This article explains how
you can use the new features to prevent some silly mistakes, as well as some
that are not so silly.
Generics
The Collections framework was introduced in Java 1.2. It provides a set of
interfaces and implementations that encapsulate many common data structures,
the most common being the List and Map interfaces.
The main drawback of using this well-thought-out framework is that a
significant amount of casting is required when extracting elements from a
pre-J2SE 5 collection ... (more)
Java security is an overwhelming issue. For a truly secure application, you
need to prevent hackers from entering the system, and you need to ensure that
code safeguards security if a hacker does break in. Moreover, there is no
room for error. If you anticipate and prevent hundreds of security
vulnerabilities but overlook just one, a hacker can still wreak havoc on your
system.
This art... (more)