-
Junior Member
Re: Difference between JDK1.4.2, JDK 1.5.0 and JDK1.6
All are in 1.5 but not in 1.4 generics this long-awaited enhancement to the type system allows a type or method to operate on objects of various types while providing compile-time type safety. It adds compile-time type safety to the collections framework and eliminates the drudgery of casting. Enhanced for loop this new language construct eliminates the drudgery and error-proneness of iterators and index variables when iterating over collections and arrays. Autoboxing/unboxing this facility eliminates the drudgery of manual conversion between primitive types (such as int) and wrapper types (such as integer). Typesafe enums this flexible object-oriented enumerated type facility allows you to create enumerated types with arbitrary methods and fields. It provides all the benefits of the typesafe enum pattern ("effective java," item 21) without the verbosity and the error-proneness. Varargs this facility eliminates the need for manually boxing up argument lists into an array when invoking methods that accept variable-length argument lists. Static import this facility lets you avoid qualifying static members with class names without the shortcomings of the "constant interface antipattern."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules