r/javahelp • • Oct 02 '26

Solved Is Java losing popularity in 3-5 years?

So I'm learning java for 3 months now, even made a few simple projects, though my friend is telling me that java might lose to something like dart and its framework flutter, I read a little bit about it, but Im unable to get a conclusion if he is right, if someone has experince in that, please tell me your opinion

7 Upvotes

76 comments sorted by

•

u/AutoModerator Oct 02 '26

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.

28

u/disposepriority Oct 02 '26

Java's primary usage is backend systems.

Flutter's primary usage is mobile apps.

3

u/Naive_Topic_5292 Oct 02 '26

Tysm, I told him the same thing tho he was standing his ground so I made this post

10

u/Ok_Entrepreneur_8509 Oct 02 '26 • Heartwarming

Ask him to write a backend service in dart and see how he feels about it.

10

u/smichaele Oct 02 '26

Your friend may know the language, but must know very little about its use. Java runs on over a billion devices. It’s not going anywhere.

4

u/Naive_Topic_5292 Oct 02 '26

My friend doesnt know the language😂, hes closer to a physical engineer, and Im the one coding backend, though I am too easy to gaslight

6

u/smichaele Oct 02 '26

Then you really shouldn’t be listening to him! I’ve never been in a car, but let me tell you which one is the best to drive…

4

u/benevanstech Oct 03 '26

A better estimate of the number of serverside Java processes running at weekly peak is 6-7 billion. And that number continues to grow steadily.

7

u/r_n_c Oct 02 '26

Does your friend realise how much is powered by Java? For instance, Netflix backend systems are powered by a set of java microservices. If you want to take a look at how easy it is now to build applications take a look at Quarkus

3

u/Naive_Topic_5292 Oct 02 '26

I mean I was telling him theres A LOT running on java, he didnt really listen though

13

u/JGhostThing Oct 02 '26 • Heartwarming

Java is used in a *lot* of enterprise software. I don't think it is going to get less popular any time soon. I did Java programming since before 1.0. I like Java, and haven't found problems that it can't solve. I've even programmed hobby robots in Java. I probably wouldn't use it for embedded or real time programming.

4

u/Naive_Topic_5292 Oct 02 '26

Ty, looking forward to get as experienced as you people)

8

u/Ok_Substance1895 Oct 02 '26

I have used Java for embedded and real-time programming (Java 1.6 running on 1,000's of ARM micro boards we spun ourselves connecting to up to 5,000 devices over the LAN network connected to 1,000's more concentrated over a WAN). It worked great.

Works great on Android too.

5

u/pronuntiator Oct 02 '26

Dart is still a thing?

1

u/Naive_Topic_5292 Oct 02 '26

Completely no idea, didnt read much, just my frined keeps standing his ground so I asked)

3

u/zlaval Oct 03 '26

No. Many languages had risen and fell. Java is still a thing..

57

u/prsquared Oct 02 '26

I work for a large fintech and our entire backend system is built in Java/spring boot. It's not just about Java, it's the entire ecosystem surrounding it. And that's not going away any time soon

7

u/Nederealm3 Oct 06 '26

And that's the hard part getting a job that requires "Java" cause you need to demo an entire working Fintech backend, and nearly impossible for fresh grads to do

-2

u/IntroductionSolid348 Oct 03 '26

Really? There's a fintech I know that wanted to shift to Go because of memory. Do you think it's because of badly written code or it's because of high memory overhead in java

4

u/CutGroundbreaking305 Oct 04 '26

Go? Bro either take rust or modern Java over Go I think modern Java is completely different and better than what old java was

36

u/AgeingCoder Oct 02 '26

I have been working professionally with Java since 1998 and for every one of those years I have listened to people discuss its demise. No doubt there are better tools for niche problems but when I want to build a highly scalable, high performance enterprise application / platform then Java is still my go to language.

-1

u/Particular-Winner136 Oct 03 '26

This is because you know Java good and have a lot of experience with it, but if you knew equally good other programming language I am sure Java will not be your first choice. OP is learning for 3 months, you argument is not valid for him. I really can't find arguments anymore in 2026 to use Java, other than "I am comfortable with it" - that is not enough for language to have a future and OP is asking exactly that.

7

u/AgeingCoder Oct 03 '26

If you read my response as 'I use Java because I am comfortable with it' then I apologise for not communicating my reasons clearly enough. I use Java for building high volume, high performing multi threaded platforms and applications because it is still the the ideal language for that purpose, its a widely used and reliable language for enterprises to use, which is why most still do. Over the years I have used many different languages, if I was learning to code now I would still learn Java, it was once described as the blue collar language that just gets stuff done and I think that's still true to do this day.

4

u/doobiesteintortoise Oct 03 '26

I know a ton of programming languages, and my goto languages and environments are… the JVM, with Java and kotlin, and rust. And yes, I know go, Python, the c family, JS/TS, and a host of others professionally. Java’s fine, it’s just not kewl.

20

u/gambit_kory Oct 03 '26

No. Your friend has no idea what he’s talking about and likely doesn’t have experience in the real world.

13

u/RhoOfFeh Oct 04 '26

People have been saying that for like 20 years.

11

u/frederik88917 Oct 02 '26

Honey, For most of its existence people have tried to downplay Java's importance and relevance.

You are not the first nor the last that was dead wrong about it

11

u/RushTfe Oct 03 '26

Java has been loosing A LOT of popularity since 1990. Now it's only one of the most used languages in the world, supporting (at least in my country) almost all of the banking and government online infrastructure. Yeah, I think it will die next week at this pace

7

u/No_Score_1977 Oct 03 '26

No. First Flutter is front end, and Java is generally backend. Flutter will die before Java does.

6

u/LordMOC3 Oct 02 '26

No. People have said it's losing popularity for what feels like decades and it's not happened.

6

u/Coffeezao Oct 04 '26

Nope, it's not going anywhere and anytime. Too much of the world is dependent on Java.

5

u/TW-Twisti Oct 02 '26

People have been saying that since literally the 90s. I remember when people said this new language named PHP would make it so Java would be effectively dead by 1997.

5

u/United_Fix_843 Oct 02 '26 edited Oct 03 '26

They always say that java will lose its popularity for decades now.

5

u/jarrod_barkley Oct 03 '26

Take career advice from seasoned professionals actually practicing in the field, not some young know-it-all who’s not even a programmer.

5

u/Z00fa Oct 03 '26

It will not happen. You may not see java in small projects anymore but java is used in the corporate world everywhere. It's the language that defines backend for most of those systems. It will not die that easy.

5

u/neikn Oct 03 '26

Java will last longer than this planet.

1

u/princepii Oct 03 '26

i am a softwaretester and this is my opinion.

i used a lot of programming languages. and let me tell u this.

even i think a language like c will last forever and ever i think java will be replaced one day. but with that said it's also important to mention that i also speak for a way bigger timeframe than one human lives on earth.

but it's more likely to happen to a language like java than c.

8

u/OneHumanBill Oct 02 '26

I can confidently predict you that in a century, there will still be Java systems running (but COBOL systems will run even longer).

It's been four or five years since I ever heard anyone even mention Dart / Flutter.

4

u/logperf Oct 03 '26

20 years ago they were already saying that Java was going to die within a couple of years. 18 years later it's still alive. This prediction keeps getting renewed every year. Just ignore it. It's like those predictions of the end if the world.

"Oh you don't understand, this time it's for real". Yeah right.

4

u/tommyleejonesthe2nd Oct 03 '26

No, java will be still be used in thirty years. Legacy software and brownfield projects need to be maintained.

4

u/freshpots11 Oct 03 '26

Ask yourself why on earth Java, a language deeply embedded in huge enterprise applications, would lose ground to a mobile framework? Google could drop Flutter tomorrow but Java will still be around when you retire

1

u/gjsopmu Oct 03 '26

BTW I have a question for you since you are learning in the age of AI - how are you learning Java and doing the projects? I know I'd be struggling in your shoes.

2

u/Naive_Topic_5292 Oct 03 '26 edited Oct 03 '26

Im actually reading all the documentations and using deepseek only if I need help in some easy part like taking input which I dont remember, all the code I write myself with docs on the internet and Im proud of it) though its hard to make myself go code, but itll go away eventually

3

u/xdsswar Oct 03 '26

In what reality he is living?

2

u/No-Communication9377 Oct 03 '26

I am applying for jobs and there are jobs for Java but not for fresher

2

u/Educational_Box_4079 Oct 03 '26

Java, C#, Kotlin best languages ever created

2

u/FriendlyPerformer871 Oct 03 '26

Other JVM languages like Kotlin and Scala will gain more popularity, which will make Java even stronger as a platform and minimally less popular as language itself.

2

u/Dry_Safe_6021 Oct 04 '26

No, java is evolving in ways I never imagined. If anything, it will regain ground on the JVM from Kotlin, Scala and other alternatives. Watch some talks by the people from the designer team who call the shots. I never thought Java's will be defined by such open minded and ambitious people. Unless, you know... Oracle's AI bet blows up erasing the company, and no suitable replacement is found.

That being said, core APIs like collections still feel like it's 1996, that will likely never change, and I would welcome some more courage when it comes to syntactic sugar, since Java 8 the syntax sometimes has a hard time carrying the new features.

2

u/OffbeatDrizzle Oct 03 '26

Java's been losing popularity ever since 1995

1

u/_Affan_ Oct 03 '26

Your friend is asking this from AI 😄

1

u/PipePressurePanic Oct 04 '26

learning, simple projects, all this lead to nohthing when all they hire are seniors.
Java perhaps is going to stay for long. But frameworks will change. Curent frameworks are still the same as years before, they are made to be used in the old way with manual programming. I think ther emust be many frameworks under constuction now that are meant to be prompt-programmed.

1

u/Cyserg Oct 04 '26

Really hope we will be able to upgrade to 11... maybe a wet dream and jump up to java 17 in 3 years time !!!

1

u/Skiamakhos Oct 05 '26

They're always touting some new language as the Java-killer. And 6-18 months later whatever the new language had, Java has it too if it was any good.

Like, Java has too much boilerplate? Ok now you can have a class that just has a main method & nothing else wrapping it. That's the speed Java moves at, a release every 6 months.

1

u/Alfafita Oct 05 '26

Java supuestamente esta muriendo desde hace 20 años y desde hace 8 años que empecé en este mundo, veo que lo usan en todas las empresas en las que he estado. 🤣

1

u/tarix246 Oct 05 '26

i believe almost all languages have bwwn losing on popularity since 2023 and birth of ai as a coding tool. ai still uses python and html/js/css as its first choices when you tell it "make me a tic tac toe" or something, as they are quite easy languages to read. so, the frame of your projects needs to be decided by its authors, otherwise it will most likely be some python or javascript. however, i think java is quite a good language, as it is very flexible

1

u/Anxious-Insurance-91 Oct 06 '26

Java was never about the popularity contest

1

u/gedamial Oct 06 '26

People’ve been asking this same question for decades.

1

u/DinTaiFung Oct 06 '26

For all who have real world software experience, it's no secret that Java has a huge install base and runs many important and critical systems. And it will continue to do so for the foreseeable future. 

However, when creating new APIs for backend web services, I prefer Go over Java. And I will continue to do so for the foreseeable future.

1

u/baghiq Oct 06 '26

I work in capital market. There are stacks and stacks of C# and Java applications running on windows and linux. They handle billions of dollar in a trading day. No one is ever gonna replace them, too much risk.

1

u/SpritualPanda Oct 06 '26

No it’s not. You should learn properly.

1

u/ChardIcy406 Oct 06 '26

Completly the opposite

1

u/amackenz2048 Oct 07 '26

Always. 😆

The death of Java has been foretold dozens of times since it was first released. But it has a huge ecosystem and the language continues to evolve.

1

u/Ok_Site_6692 Oct 08 '26

Is there anyone who is interested in learning DSA with java lets make a group and be consistent and teach eachother

1

u/lpkk 22d ago

Currently changing company infrastructure from c# to java. So I would not say it. Java still strong

1

u/Particular-Winner136 Oct 03 '26

There will be always legacy code to support. It is not going away, but I can't find a good reason to start a new project in Java. With penetration of AI agents into the industry, I benefits of those class of languages/runtime disappear. I would always pick Rust, C++ or even .Net C# before Java

0

u/Own_Nail_2999 Oct 04 '26

Java, just like Oracle in general, unfortunately still plays a large role in enterprise sectors.

But these days you often end up with legacy products which are maintained. 

Modern new apps often shifted over to C#/.NET and since everything has to be a web app for some reason, Java doesn't seem to fit into that niche anymore.

5

u/Electrical_Being_813 Oct 04 '26

I refuse to believe anyone would create new application in c# over java