Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Programming' started by KingTux, May 12, 2016.
which java version is the best 6 or 7 or 8.
I go with Java 7.
why would one use not the latest?
The latest version of Java will always be the best version. It isn't EOL'd, security patches will happen, and it will always have the most up to date Java practices involved from the new features.
There's not a single reason why you would 'prefer' Java 7.
In my opinion this thread is bullshit.
I changed my mind I go with Java 8
The latest is always the best. I love Java 8's lambdas, they're a step in the right direction (which is the not-so-verbose direction). Still most of my plugins are compiled in Java 6 for backwards compability.
Can I ask why you would ever 'prefer' to use an outdated version? You aren't loosing anything by using the latest version (except backwards compatibility if you are talking about compilation).
not realy true, you can set the target version to 1.7 when using 1.8
There is no reason not to use the newest version except laziness or incompetence, unless there is some sort of unresolved bug or issue in the newer version.
Yup. Sounds about right.
Your name fits this thread so appropriately.
I use Java 8, but to compile software, you should always use the minimum requirements. If you don't need Java 8, compile against Java 7. If you don't need the internals, compile against the API. If you don't need any Spigot API code, compile against Bukkit. It's always the same principle. 1 / 3 of the servers still use Java 7. They probably don't know how to update or have limited possibilities because of their hosters. That's why I try to stick with Java 7 for my plugins if possible. Besides that, Java 8 JavaDocs changes are just annoying. I think I'll always generate my docs with 7...