• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

From Java 1.4.2 to Java 6

 
Devin Richards
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Being married to the IBM WebSphere stack I have been stuck in 1.4.2 land for many years, until now. We are looking to move to the new versions of the tools all of which are using Java 6.

I am looking for resources to help me understand all of the new "cool" stuff in Java 6 (and why I would use it.)

Having been programming for over 15 years and a majority of them in Java, I don't need to know how to program (some may argue that) and I don't know Java 5. So I don't need a beginners book but it can't assume I know Java 5. I am more interested in Enterprise code and less in the UI space.

Any ideas?

TIA
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so do you want to upgrade to java6? If you are good enough with java1.4 then for you to move java1.6 wont be that difficult. you can google and find out the new packages and classes with their needs!
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and Welcome to JavaRanch
 
Devin Richards
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree that the code I have and can write should work and if it doesn't the compiler and some debugging & googling will solve that. I am interested in finding out how and why to use any of the new features or enhancements since 1.4.2.

Most notably is annotations as I see them all over the place.

Just looking for articles, sites, blogs and books to help me on my way as trying to get google to give me a decent result set has been frustrating.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look for books that focus on Java 5 or "Tiger".

For example, I found both of these books helpful back when I was in the same boat:
  • http://www.amazon.com/Java-5-0-Tiger-Developers-Notebook/dp/0596007388
  • http://www.amazon.com/Java-v5-0-Tiger-New-Features/dp/0072258543
  •  
    Pat Farrell
    Rancher
    Posts: 4678
    7
    Linux Mac OS X VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    IMHO, the two biggies are generics and the improved for-loop. Well, three if you count the much better auto-boxing support.

    The new for-loop and autoboxing are pure good things.

    Generics are a mostly good thing, they can really help, but the syntax is a bit bizarre and the implications of some of the legacy-compatibility decisions are baroque.

    Most folks do not convert legacy code. Rather, they allow it to interoperate, and write new code to the new features of the compiler.

    Have you considered going straight to Java 7?
     
    Devin Richards
    Greenhorn
    Posts: 3
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I can't go to 7 as IBM is on 6. Thanks for the info!!
     
    Paul Clapham
    Sheriff
    Pie
    Posts: 20980
    31
    Eclipse IDE Firefox Browser MySQL Database
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Pat Farrell wrote:IMHO, the two biggies are generics and the improved for-loop. Well, three if you count the much better auto-boxing support.


    Four if you count enums...
     
    Campbell Ritchie
    Sheriff
    Posts: 48652
    56
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    New memory model and lots of new classes for concurrency. I think that's six now.
     
    Ove Lindström
    Ranch Hand
    Posts: 326
    Android Firefox Browser Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Add Varargs and we are on seven.

     
    Pat Farrell
    Rancher
    Posts: 4678
    7
    Linux Mac OS X VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Campbell Ritchie wrote: lots of new classes for concurrency.

    I disagree. Sure they are nice, but anyone who cares about concurrency has a copy of Henry's Threads book, and it contains source code for classes with all the same functionality. I don't think adding a few library classes to the SE JDK, when you already have working versions of them, counts as a big deal.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic