I'm writing a tutorial and I guess I should add somewhere what version of Java its written for... If I'm having "jdk1.6.0_17" and "jre6" on my windows 64bit computer, how would I write what version its written for and is there any other information that I should give that would be necessary to be in a Java tutorial?
Thanks in advance.
You could say that built your code using JDK 1.6 u17, or you could look at the API for all of your various types and figure out which one has the highest version requirements. However, most people have a recent version of Java, so you should be fine.
Okay thanks. Well it was most for the documentation so you know years later how updated the tutorial is. At the moment you can indeed assume everyone runs the latest version.
Java releases are backwards compatible with programs written in a different version; Sun simply deprecates methods that are no longer "safe" to use, although they will still work. Most modern IDE's will tell you if a method is deprecated or not when you try to call it.
When you use a newer version of Java it won't matter what version you use, unless the other person uses an older version, so it's really fine so just post the version you used on it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks