This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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: 45415
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
    It's not a secret anymore!