r/javahelp • • Aug 16 '24

Codeless Considering coming back to Java after 10 years of not using it. What are some of the things developers use today they didn't use then?

Sometime around 10 years ago I switched paths and have been blessed to be able to use functional programming almost exclusively in my professional endeavors (mostly Clojure and Elixir). Currently looking at jobs and realizing that my talents with Java are probably so rusty as to be nearly useless.

What are some of the biggest day-to-day changes?

20 Upvotes

16 comments sorted by

•

u/AutoModerator Aug 16 '24

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions

  • You include any and all error messages in full

  • You ask clear questions

  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

9

u/marskuh Aug 16 '24

I would say

var

Streams

Try resources

Closures

Security Manager being ripped out soon

default implementations in interfaces

1

u/it_snow_problem Aug 16 '24

I was getting familiar with streams but my work was just kinda getting started with them back then. But var, default impl, resources, and closures are way new for me

29

u/[deleted] Aug 16 '24 edited Apr 17 '26

Data Brokers don't stand a chance because I mass delete all of my content using Redact - No AI training on my data, thank you very much.

hobbies imagine trees rainstorm fact market pillow employ jar library

3

u/[deleted] Aug 16 '24 edited Apr 17 '26

I got tired of my old posts floating around for anyone to scrape, so I let Redact handle it. Bulk deletion across Reddit, X, Facebook, Discord and all major social media platforms in one shot.

flowery engine sable doll sand ten station slap cow vanish

10

u/khmarbaise Aug 17 '24

Streams + the API, Lambdas (https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html) , java.time (https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/package-summary.html) Yes "var" is a subject... since JDK 10 JEP-286 https://openjdk.org/jeps/286) Default methods on interfaces (JDK8), Since JDK 7 usage of Path insteada of File, Files factory methods (with JDK8 support of streams)

a number of deprecations in the API's removed methods...things like wrapper class constructors etc. (check this: https://javaalmanac.io/)

1

u/karthgamer1209 Aug 25 '24

Excellent answer! Thanks for posting!

1

u/NeoChronos90 Aug 17 '24

I did the same and funnily the biggest "oh shit I completely forgot about that" was realizing that java has checked and unchecked exceptions and contrary to what I remember no one seems to use checked exceptions anymore while I still feel like we pretty much used them for everything 10 or 15 years ago.

1

u/it_snow_problem Aug 17 '24

Huh! I would not have guessed things would go that way.

1

u/Darkschlong Aug 16 '24

What version of Java did you last use? 15 has some features I liked

1

u/it_snow_problem Aug 16 '24 edited Aug 16 '24

I take back my previous answer. It was definitely version 11

2

u/boboclock Aug 16 '24

Using SonarLint in IntelliJ is a pretty good way to learn what's en vogue and what code & coding styles are being deprecated

1

u/KoebaPop Aug 16 '24

I personally use eclipde with java 8. So they are not really news stuff on my side for u i guess

1

u/karthgamer1209 Aug 25 '24

You have some really good answers already. I would also mention that IntelliJ is the most popular IDE. Spring Boot for the framework. A JS framework for the front end (1st choice React, 2nd choice Angular).

0

u/AmiAmigo Aug 17 '24

Start with Spring. Solid framework