• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Version Difference

 
Robin Ranga
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between java1.4 and java1.5
 
Campbell Ritchie
Sheriff
Pie
Posts: 50182
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Sheriff
    Posts: 11343
    Java Mac Safari
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    See J2SE 5.0 in a Nutshell.
     
    Jim Yingst
    Wanderer
    Sheriff
    Posts: 18671
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    [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 ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic