Monday, March 27, 2006

Java 5 || Java 1.5

Java 5 has come up with many changes. I Went for A KSS today. Java 5, this is the new way of calling the new java releases now, earlier we used to call it java 1.2 & java 1.4 etc.

The language has come up with many good changes; Most of the Changes which i could understand were fabulous.

Some of the Changes in Java 5 are:-

1. Boxing & UnBoxing

eg..

Integer iobj = 10;
int i = iobj;

2. Enhanced For Loops

eg..

for(int i=0;i < nums.length;i++)
out.println(nums[i]);

for(int i : nums )
out.println(nums[i]);


3. Enumerations: enum

4. Static Import: Think about using random instead of Math.random();

5. Varargs : Variable length Arguments

6. Formatted IO : Functions like printf()added.

7. Generics: Something related of template in C++. Generic Classes & Methods..

8. MetaData : It is more advanced than javadoc, better support for Implementation Team

9. N/w & security: some new Classes for SSL support

10. Changes in JVM, related to Thread, about different states of Thread.

Well there are many changes these are few to name…

No comments:

Java 10 Features

My blog post in JournalDev for Java 10 Features