Dennis' Weblog

Monday Aug 28, 2006

What you like about JDK 1.5?

Two things that I really like about JDK 1.5.

Annotation
This feature opens up alot of opportunities to rethink how code can be implemented. In OpenSSO project, the Commandline Interface tool uses this feature. Check it out :-)

Generic
This feature makes code cleaner and make collection classes typesafe. For example, we can have

    List<String> strList = new ArrayList<String>();
    strList.add("hello");
    strList.add("generic");

    for (String str : strList) {
        System.out.println(str);
    }

Now, what is cool in JDK 1.6? :-)

Comments:

Post a Comment:
Comments are closed for this entry.

Calendar

Feeds

Search

Links

Navigation

Referrers