Saturday, December 3, 2011

J2SE 1.5 New Features and Enhancement

Java Language Features
Generic Types
Enhanced for Loop
Autoboxing/Unboxing
Enumerated Types
Varargs
Static Import
Metadata (Annotations



Generic Types

eliminates casting during taking an element out of a Collectio

provides compile-time type safety



Reference:
http://www.e-informatyka.pl/sens/attach/J2se5feat120405/J2SE_1_5_New_Features_and_Enhancements.pdf


  • Enhanced Loop

It allow to create one variable which will iterate over array or collection.By this we can do nested iteration.

Reference:
http://www.techartifact.com/blogs/2009/04/for-each-loop-in-java-15.html

No comments:

Post a Comment