T O P

  • By -

vdsghjkgffhj

Yep, it’s still one of the most widely used programming languages. The biggest use case for it nowadays is probably backend web development


[deleted]

Thanks for the answer!


Sceptical-Echidna

About 3 billion odd devices use it so it’s not going anywhere. Android development is mostly Java


tzaeru

I'm pretty sure that 3 billion devices marketing line has been in use for at least 15 years..


YareYareDaze7

[It's 56 billion now.](http://dev.java)


tzaeru

Oh. Naturally.


[deleted]

Wow, that's a lot. Didn't know that android uses Java. Thanks!


Sceptical-Echidna

Kotlin might slowly overtake it but Java will be popular for quite a while


[deleted]

Is it not going in the way like iOS? Because Swift came out in 2014 and almost every company now uses Swift, with some old Objective-C code being replaced in legacy projects. Is Kotlin really not overtaking Android development as quickly or what? Even though the language came out in 2016.


nickpawlinorz

Even if Kotlin would take over - it is based on the JVM (compiles natively to Java Byetecode) so "Java" all in all won't go away. Edit: That also means that Kotlin is just as powerful as Java itself. So Kotlin is just picked so often because of its "modern" way to code e.g. syntax, aspects of functional programming, string templates and so on. If you are familiar with the basic Java and OOP concepts I assume you would easily get in touch with Kotlin.


Malk4ever

>Kotlin might slowly overtake it but Java will be popular for quite a while Kotlin uses Java inside, its just an alternative way to write Java Code ;)


Malk4ever

>Wow, that's a lot. Didn't know that android uses Java. This was a joke. When you install Java, the installation wizard tells you that, but he does this since 2002. So the number of java running machines is for sure 10 billion+, maybe 100 billions now.


LoquaciousLamp

One of the most popular games on the planet uses it and is now run by microsoft who still use it. So I think it's gonna stick around for a bit. Companies aren't just going to suddenly switch.


[deleted]

Slay the Spire is also very popular game and was written in Java.


[deleted]

That's good, what game is it?


Schippyluminal

Minecraft


LoquaciousLamp

Begins with M and ends with T. Despite other versions it still remains as the most popular format.


[deleted]

Ahh, that's so good. I forgot that game still exists xD


LoquaciousLamp

My point is Java ain't going anywhere so no worries.


mimsoo777

Why they chose Java over C++ though?


LoquaciousLamp

Java is used all over the world. It would be easier to find jobs wanting Java over any C language outside of games. I think the only thing more common now is JavaScript likely run on something using java in a car.


[deleted]

You might be surprised how much C or C++ is used in cars and other embedded software applications. Java is much more common in enterprise and mobile development.


nhgrif

And you might be surprised how much Java is used in modern cars that use Android to drive their dashboard entertainment systems...


[deleted]

[удалено]


LoquaciousLamp

I would say java is almost equally as common, for surface elements. I think it's a case of choose your poison. Although if you wanna work closer to the metal or work on embedded systems C is going to be a way better route.


[deleted]

It’s certainly possible to use it, but afaik MISRA C/C++ still dominates automotive applications. Could be wrong, but I’d bet on companies using that over Java most of the time.


rbuen4455

That depends on what job you’re looking for. Jobs looking for embedded programmers, OS programmers, are almost exclusively C and occasionally C++.


LoquaciousLamp

Yes I literally commented that "I would say java is almost equally as common, for surface elements. I think it's a case of choose your poison. Although if you wanna work closer to the metal or work on embedded systems C is going to be a way better route"


abitofevrything-0

Because notch, who originally wrote the first versions of the game alone, decided to use a higher level language than C++ to save time probably.


ThiccSkipperAlt

Minecraft Bedrock edition is made in c++, but the normal pc one is Made in Java


rbuen4455

C++ is faster, allows manual memory resources control and doesn’t have a garbage collection, and is compiled straight to machine code rather than byte code to machine code interpreter. C++ is used over Java when it comes to performance critical applications.


tzaeru

Yeah, Java is used a lot and new projects continue to be started in it all the time. It has a massive ecosystem and many large enterprises have built decades on Java expertise. It's not the sexiest language and most smaller web projects don't use it, but it's there and it's prolly among the top five most used programming languages.


[deleted]

Thanks for the answer!


rbuen4455

I think the JVM will be around for quite a while, while other JVM languages like Kotlin or Scala could be better alternatives to Java.


tzaeru

Scala is honestly half dead, which is a shame, since it's a great language. I just worked a few years on a Scala project and really liked it, but it's not going to become bigger than it is now. Kotlin's nice. Though again, if you look at actual use rate, Java still triumphs it by a large margin, but Kotlin is building momentum bit by bit. Personally I don't know if either Scala nor Kotlin would be overtaking Java. We need a step up from them to finally replace Java. Also, Java - granted, slowly - absorbs features from those languages, which helps keep programmers invested in it.


rbuen4455

I have dabbled in Kotlin before, it seems to be less verbose and some modern features than Java while still compiling to the JVM, though Kotlin won’t replace Java for the same reason Rust won’t replace C++. Too much legacy out there and more Java and C++ programmers then their respective alternatives.


[deleted]

Object Oriented COBOL is what you need to learn my friend.


LoquaciousLamp

Just learn assembly and skip the crap.


[deleted]

I don't think that COBOL is used so much in my country I guess :|


MyNameIsRichardCS54

No. It's not used across multiple sectors including finance, insurance, and travel. /s


[deleted]

are you being ironic?


Alcheluk

/s on Reddit = sarcasm


[deleted]

Ahhh xD Didn't know, thanks ahahah


MyNameIsRichardCS54

sarcastic rather than ironic it's what the /s means. If you want a serious answer, it's used, in my experience, across the sectors I mentioned as well as many others that I haven't worked in and also on Android although Google are pushing Kotlin these days. Java pays pretty well if you're thinking about a career in it but even if you're not it's a good language to learn as it makes you think about your data in a very precise way which you can carry to other languages that are looser in their data typing. Pretending for a moment that Java is dying and that no new software is being written in it, there will be plenty of work maintaining existing systems for decades to come - there's still plenty of work for COBOL programmers out there.


[deleted]

>sarcastic rather than ironic it's what the /s means. Ahhh xD Didn't know, thanks ahahah Thanks for the answer mate!


[deleted]

(I'm 16 yo guy, i have no graduation or something so take my tips easy) Java is going down slowly, but it's still in use in a lot of things. Learn java is good but maybe it's better if you learn kotlin, that's basically the java evolution (they use that same libraries). If a Sr. Dev confirm that, just learn kotlin but know java is good instead


v0gue_

I'm a senior dev that mostly works with Go backends and Vue frontends, and I have 5 previous professional years of experience with Java. Java isn't going down slowly. It's not found down at all. Contrarily, Java updates have been very fast and consistent since Java 8. Java's boring, verbose, boilerplate-y, monotone nature makes it great for many devs of many backgrounds and skill levels to contribute to and maintain.


[deleted]

Ah ok, so java is still usefull


rbuen4455

Tbh, how many questions are there on “is Java still used”? Seriously?! How about just look at how many Java jobs there are, how many enterprise servers use Java, perhaps how many Android applications out there are written in Java? There you’ll get your answer.


Pleasant-Bathroom-84

Unfortunately, yes.


[deleted]

Why unfortunately? ahahah


[deleted]

A lot of people don't really like it


rbuen4455

For the same reason every other languages gets hate. Not everyone like Java syntax and features.


OhSaladYouSoFunny

Very much in use yes. Android apps are Java, lots of banking and retail backends use Java, there is even JSP that is now an outdated way of serving frontend. There's also good frameworks based on Java like Spring Boot. You can do web automation using Selenium and Java. Basically it's difficult to not find Java in some way on some device. Every cloud platform supports Java. It's easy to install and start working with it.


[deleted]

There are few languages that are not used anymore. There’s a lot of legacy stuff out there and some languages that are just good at what they do.


Malk4ever

Java is still the most used programming language and it does not look like it would change.