this post was submitted on 13 Nov 2024
816 points (96.2% liked)

Greentext

4389 readers
1327 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Ilovethebomb@lemm.ee 74 points 2 days ago (60 children)

Can anyone who's actually dealt with Java tell me how much Anon is exaggerating?

[–] schteph@lemmy.world 27 points 2 days ago (3 children)

Java is religiously backwards compatible. Modern java projects are not as enterprisey and boilerplatey, but, as jdk21 is backwards compatible with jdk1.3, you can still happily write code as if it's 2003.

Additionally, the java space is huge, so just wildly googling will probably not help you that much.

[–] Hawke@lemmy.world 3 points 2 days ago* (last edited 1 day ago) (1 children)

Is that why every single application will only work with some ancient version of Java?(usually 8, sometimes 1.6 or 11)

I can’t think of many cases where Java 21 is a drop in replacement, and I don’t think anyone actually used 17.

[–] pivot_root@lemmy.world 4 points 2 days ago* (last edited 2 days ago)

That's entirely the fault of applications (or more likely their libraries) using internal APIs or JNI. As long as it isn't doing anything screwy with reflection and class loading or using the sun.* packages that aren't part of the language specification, Java bytecode compiled for ancient Java versions will still work on modern versions.

load more comments (1 replies)
load more comments (57 replies)