File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Version Difference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Version Difference" Watch "Version Difference" New topic

Version Difference

Robin Ranga

Joined: May 29, 2006
Posts: 25
What is the difference between java1.4 and java1.5
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46320
A few from memory:-
  • About 600 new classes in the API; the two most likely to appeal to beginners are java.util.Scanner and java.util.Formatter.
  • Autoboxing
  • The foreach loop (for String s : stringArray), maybe emulating C#
  • static import
  • using the add() method in JFrame rather than getContentPane().add() and by far the most important
  • Generics.
  • marc weber

    Joined: Aug 31, 2004
    Posts: 11343

    See J2SE 5.0 in a Nutshell.

    "We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
    Jim Yingst

    Joined: Jan 30, 2000
    Posts: 18671
    [Robin]: What is the difference between java1.4 and java1.5[?

    Ummm... java0.1?

    Clearly, you would be better off just following marc's link and ignoring me...
    [ June 03, 2006: Message edited by: Jim Yingst ]

    "I'm not back." - Bill Harding, Twister
    I agree. Here's the link:
    subject: Version Difference
    jQuery in Action, 3rd edition