David Salter, 21st May 2006 J2SE 5.0 has been available for download since the end of 2004. This new release included many changes and enhancements to the Java platform such as speed and stability. Additionally, some changes were made to the Java language itself. These fairly major changes made to the language are: Generics Enhanced for loop Annotations (sometimes called metadata). Autoboxing and unboxing Typesafe enumerations Variable arguments (varargs) Static imports Using these new language features in your applications can have a big effect on your code, so this article aims to provide an overview of these new features so that you can start leveraging them in your code. As a Java developer I make extensive use of these features now and find that they bring the Java language much more upto date. Generics The latest version of J2SE could have a collection of any type of object). Prior to Java 5, if you wanted to extract the contents of a collection, you would use c...
... real developers use subtitles