• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java 5 to 7 upgrade for using new programmatic features released

 
vijay makam
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using java 5 in our projects. With Java releasing new versions at quite a good pace than we can think of upgrading to, how can we use the new features of Java. We can always upgrade to the
new version of java/jdk but how do I make use of the new programmatic features. Is there a good starting point for us to guide us in refactoring our java 5 code bases. Also does java 7 preach something which was good in java 6 to be not so good or has provided a better way of doing them.
I hope the book "The Well Grounded Java Developer" has something that I am looking for.

 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vijay,

I'm pretty sure our book mentions it, but just in case... All 3 major IDEs (Netbeans is the most advanced at this) will recommend and allow you to automatically update some of your code to use new Java 7 features. However, in terms of using Java 6 features, you'll simply have to look at a good upgrade guide (or at least that change list) and see what new features you want to use.
 
Campbell Ritchie
Sheriff
Posts: 48381
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since Java5 is past its end‑of‑life, you should have changed to Java6 at least, already. Of course, old code which works well should be treated according to the “if it ain’t broke, don’t fix it” principle.
 
chris webster
Bartender
Posts: 2407
32
Linux Oracle Postgres Database Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could look at the book Java 7 New Features Cookbook which illustrates many of the new feature with code samples.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic