- Generics - Provides compile-time type safety while still allowing a type or method to operate on objects of various types.
- Enhanced for Loop - The for statement can now be used to iterate over an array and a collection.
- Autoboxing/unboxing - Automatic conversion of primitives to wrapper types and vice versa.
- Enum type - A new enumeration type in Java.
- Varargs - Allows a method to accept a variable number of arguments.
- Static import - Eliminates the need to qualify static members with class names.
- Annotations - A special type of interface used for annotating any program elements.
Downloading and Installing Java 5
2. Double-click System. on Windows NT, select the Environment tab. On Windows 2000 and Windows XP select the Advanced tab and then click on Environment Variables.
3.Locate the Path environment variable in the User Variables or System Variables panes.The value of Path is a series of directories separated by semicolons. Now, add the full path to the bin directory of your Java installation directory to the end of the existing value of Path.The directory looks something like:C:\Program Files\Java\jdk1.5.0_\bin
4.Click Set, OK, or Apply.
No comments:
Post a Comment