Java Tiger on the horizon
I felt a little thrill reading this
interview with Joshua Bloch about the new features in J2SE 1.5, also known by its
codename Tiger.
Here's what we can look forward to.
- Generics make collections easier to work with. The compiler can flag casting problems.
- Improvements to the
forloop make it easier to iterate over collections - Autoboxing and unboxing make primitive types and their wrappers work together more easily
- Typesafe enums
- Static imports
- Metadata
The interview makes it clear that the compiler is meant to take on some of the work that used to fall to the developer.
Joshua Bloch makes this observation.
..Because the compiler, unlike the programmer, never makes mistakes, the resulting code is also more likely to be free of bugs.
The message at the end of the article probably sums up version 1.5 best.
Above all else, Tiger is a developer-focused release.
When the Java programming language was introduced by James Gosling and his team, it took
off like a rocket because it struck a chord with developers. This release is
all about building on that legacy.
Related articles
Related CZ Podcast episodes
- #3 · Java 6 SE, Vývoj webových aplikací
Dagi and Filemon discuss Java 6 and web application frameworks. · Czech audio
- #1 · Vývojová prostředí v Javě
The first CZ Podcast episode looks at Java development environments. · Czech audio