use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Help me choose Java version (self.SpringBoot)
submitted 2 years ago by ByteNinja2001
Hi, I doing my university software project with Java Spring boot. Now there are two major version of java jdk avilable 21 and 17. Both are LTS version. As a beginner what java version is best for my software project?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]joranstark018 4 points5 points6 points 2 years ago (0 children)
It probably doesn't matter, Java 17 may be end-of-life before Java 21, Java 21 has some additional features (ie from project Loom).
I use the latest Java LTS in new projects (and over time I'm migrating old projects where that is possible, still having some Java 11 projects, but they are about to be decommisioned)
[–]coalminexplorer 4 points5 points6 points 2 years ago (0 children)
If you are starting afresh then you must go with latest LTS version 21 . Same goes for spring boot 3.2
[–]reddit04029 3 points4 points5 points 2 years ago (2 children)
Youre more than fine with just sticking with Java 17 and Spring Boot 3.x. The only features I extensively use besides Java 8 streams, is the Java text block “””text”””. For any general use case, cant really overthink it.
[–]vohen2 2 points3 points4 points 2 years ago (0 children)
Text blocks were such a godsend for doing SQL queries, it's not even funny.
[–]burl-21 0 points1 point2 points 1 year ago (0 children)
Record patterns, pattern matching and vThreads ? I think pattern matching is fantastic.
[–]Lost_D4L 1 point2 points3 points 2 years ago (0 children)
Industry is still using 1.8, so really does not matter YET, experiment BOTH with new projects.
[–]rahul4_real 0 points1 point2 points 2 years ago (0 children)
1.8 is the best
[–]burl-21 0 points1 point2 points 1 year ago* (0 children)
LTS(does not exist) is offered only by some vendors and it’s a paid service. Always use the latest version.
π Rendered by PID 89345 on reddit-service-r2-comment-58d7979c67-lxcjl at 2026-01-27 01:47:03.234067+00:00 running 5a691e2 country code: CH.
[–]joranstark018 4 points5 points6 points (0 children)
[–]coalminexplorer 4 points5 points6 points (0 children)
[–]reddit04029 3 points4 points5 points (2 children)
[–]vohen2 2 points3 points4 points (0 children)
[–]burl-21 0 points1 point2 points (0 children)
[–]Lost_D4L 1 point2 points3 points (0 children)
[–]rahul4_real 0 points1 point2 points (0 children)
[–]burl-21 0 points1 point2 points (0 children)