Tuesday, July 28, 2009

What's the difference between the different Java versions? And which one should I be using to program with?

At Uni, we're using the 1.4.2 version, but there are other versions - what's the difference between the various ones, and should I not be using the latest one?

What's the difference between the different Java versions? And which one should I be using to program with?
Is UNI a company or university? Basically, you should stick with what they support.





Ultimately, with each new version of Java, there are additional capabilities that come in very handy. One big thing for me in going from 1.3 to 1.4 was the addition of regular expressions.





Going from 1.4 to 5 would probably be enumerations or generics, but I haven't made that migration myself. There are significant changes to the underlying language itself and is probably the biggest reason people still use 1.4.





Java SE 6 doesn't seem like such a big upgrade... I think mostly for performance, but I'm not sure. It could also be in response to opening the API to community feedback.
Reply:Errr... same with any other software.





Bug fixes, security issues and other improvements etc. as the numbers get higher!
Reply:Higher numbers have bug fixes and new features. I suggest that you use 1.5 or higher - lots of good new features were added in 1.5. You can find out the details on any given release by checking the release notes and other documentation at http://java.sun.com/
Reply:Basically its always best to use the latest Java version you can get (preferably after you've checked the release notes) of your preferred vendor (Sun's is recommended).





If you're using Sun's Java (JDK/JRE) then you probably should upgrade to the latest, they keep backward compatibility for most cases.





The changes between the versions are usually more feature, language updates, bug fixes and so on.





Differences between vendors is something for the tech savvy (compiler and run-time differences) so if you need to get into that go to the different vendors' web-sites.


No comments:

Post a Comment