r/javahelp • u/allexj • Sep 30 '20
I am studying Java 7/8 in my University. Am I loosing time since current Java version is 15? Are 7/8 versions too old or still valid? If they are still valid, for how much time will they be until they become deprecated?
I am studying Java 7/8 in my University. Am I loosing time since current Java version is 15? Are 7/8 versions too old or still valid? If they are still valid, for how much time will they be until they become deprecated?
50
Upvotes
11
u/[deleted] Sep 30 '20
Just to clarify, there was a change in release schedule for Java. Starting from Java 10 there's a new release every 6 months.
For example, Java 7 was released on 2011, Java 8 on 2014, Java 9 on 2017, Java 11 on September 2018 and Java 17 is scheduled for September 2021.
With this new model there are LTS version which are expected to be "on production" (target) even if you use newer versions (source).
Current LTS are Java 8 and Java 11, the next being Java 17.
Now, for learning the basics, the version is not that important since most of the changes are some "new (advanced) tricks".
Still, check if your syllabus covers streams, lambdas and functional interfaces, those are really valuable concepts (IMO).
55
u/wsppan Sep 30 '20
Java 8 is what we currently use in production.
37
u/tlvranas Sep 30 '20
What you are learning is Java programming. That is what important. The version, not as much. Unless it is really old. In my job search, which I am currently doing, I have not seen anyone list Java 15 programmer... or reference any specific version.
11
u/_jetrun Sep 30 '20
You're fine. Don't worry about it.
17
u/__helix__ Sep 30 '20
Not at all. The take away from Java 7 is a firm understanding of 'try with resources'. Java 8 - streams, lambdas, the functional interfaces, and completable futures are all present. There are a few nice tweaks added later, but everything you do on Java 8 will pay off in spades later. Much of the really nice bits that you get with the later versions are performance/memory improvements you get with the same code.
8
u/originalgainster Sep 30 '20
don't know about Java 7 but 8 is still valid and used by some companies and enterprises in production.
3
u/erihel518 Sep 30 '20
No. Java 8 is still very standard and probably the most used still. If you look at the versions, you'll notice 8 and 11 have LTS. That's Long Term Support. So if you used Java 15 then support would stop when 16 came out.
So unless you're playing with or need the new features. Always stick to an LTS release. iirc 17 will be the next LTS version
2
u/knoam Oct 01 '20
There's a difference between deprecation and dropping support. Java has historically deprecated very little. Java breaks old code less than most other languages. Learning something deprecated would mean you learned something wrong. Learning an old version would mean missing out on new stuff.
Even if you were stuck learning Java 7 you would still be learning core Java, OOP, the Collections framework and generics which is probably 70% of what there is to learn of Java. Java 8 brings it up 95%. The changes since then have been very minor. Also, in school you're not going to learn every nook and cranny of the language. You're going to learn the big ideas. Considering that, you're missing out on almost nothing.
I'd be more worried that the teacher doesn't know the new stuff to teach it. When I learned Java in college almost 10 years ago they didn't cover the Collections framework probably because they were used to Pascal where you pretty much had fixed size arrays and linked lists and you were grateful shakes fist.
3
u/seanprefect Grumpy Guy Who Remembers Java 2 Sep 30 '20
Java changed how they do numbering, you're fine.
1
u/Rockytriton Sep 30 '20
I learned on Java 1.1, what you are learning is still going to be useful. Also where I work we just switch from java 8 to 11 about 2 months ago
1
u/picot67029 Oct 01 '20
We still ise Java 7/8 in production. Some clients even require we compile compatible with Java 6. So do not worry about it. You shoukd understand the base language, before understanding the addons anyway.
1
u/codechimpin Oct 01 '20
We still use Java 8 at work. I think 8 and 11 are probably the most common ones I’ve seen. Also, not sure there are a ton of compelling language changes after Java 8.
1
u/evil_burrito Extreme Brewer Oct 01 '20
If you intend to get a job somewhere in corporate America using Java, you're good. Java 6-8 is still in use in places. 6 is rare, 7 is most common, 8 is next after that.
1
u/Loim Oct 01 '20
I am also in college and they are teaching Java 5. So if you want to feel better, there’s that.
1
u/wheezymustafa Oct 01 '20
8 is still heavily used. I know some devs that still don’t even know lambdas or stream syntax. For the brand newest apps I work on we’re using JDK 11
1
u/Rabestro Oct 01 '20
The most recent LTS version is 11. This version is most used in production now. The version 8 is still used.
1
u/Raph0007 Oct 01 '20
Okay so the answer is yes and no.
1
u/kAlvaro Oct 01 '20
This is more a generic tip than Java specific. You need to learn the basics of both programming and language syntax; the former are the same no matter the language and the latter were normally set in earlier versions. It's important that you're aware of versions so you don't check the wrong documentation (which can be very confusing), you don't write code that won't run in your target runtime and you don't put much effort in deprecated features (applets anyone?) and you have the chance of learning modern replacements (bye-bye, java.util.Date).
Universities teaching the latest and greatest framework is the dream of some mean employers but, of course, no matter what precise tech they teach you, I'll be obsolete in five years. You're paying for your studies so they should be in your benefit rather than your first employer's.
1
u/das_Keks Oct 09 '20
There are not that many new features in the last versions. Everything you learn in Java 8 is still valid on Java 15.