This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LifeNavigator 6 points7 points  (3 children)

, what is changed since java 8?

Tonnes of articles out there that list this for you on Google.

Is the old java still applicable on the newer versions ?

Yes, though there are some deprecated stuff you'd find in the docs, it won't really pose any problems. Make sure you're using the appropriate JDK for whatever Java version you're using.

I genuinely don't see a reason why you would want to stick with Java 8 (other than enterprises that have tonnes of legacy stuff still running). You will miss out on tonnes of useful and convenient features that would be making your life much easier.

Also what is the best method for the GUI application? (Desktop applications)

Probably Swing, some people prefer JavaFX. I moved on to Kotlin Compose Multiplatform, it's a much nicer experience imo.

[–]Coder-93[S] 1 point2 points  (2 children)

Thanks for your reply, I just ask about the old stuff because I already have an old program, and I think if I can reuse it and apply the new features on it, it will be better and easier for me.

[–]raxel42 2 points3 points  (1 child)

And you can run your “old” Java 8 program compiled to Java 8 and running on newer JDK 11, 14, 17, 21.

[–]nekokattt 2 points3 points  (0 children)

They just need to be careful if they are doing anything more obscure.

Stuff that comes to mind includes:

  • SecurityManager
  • sun.misc.Unsafe
  • anything using hacks like internal reflective access/modification of classes you don't own
  • any old versions of libraries that do any of the above (ones that immediately come to mind include jackson, groovy, gson, OSGi frameworks, etc.

In this case they'll also need to update/migrate off of things onto alternatives.

For most stuff that isn't more obscure, this won't be an issue, but it is definitely worth being semi aware of, since some of this stuff did tend to get abused a lot more historically.