what are the new features added in jdk1.5
New features added in jdk 1.5:
1)Generics: Compile-time type safety for collections without casting.
2)Enhanced for loop: Eliminates the drudgery and error-proneness of iterators.
3)Autoboxing/unboxing: Avoids manual conversion between primitive types (such as int) and wrapper types (such as Integer).
4)Typesafe enums: Provides all the well-known benefits of the Typesafe Enum pattern.
5)Varargs: Using this, you don't have to pass an array of stuff. The runtime automatically converts the arguments into an array of strings.
6)Static import: Lets you avoid qualifying static members with class names.
7)Annotations: They provide a little extra information about the classes you write, and a class can use the Reflection package later to read the annotations. These are useful because you can attach extra information to your code that may determine how it is used or maybe if it is used at all.