Ask coding questions

← Back to all posts
Modern uses for Java?
h
xfinnbar (21)

I'm considering learning Java at the minute, is it worth doing in this age? It just doesn't seem to be the best option for anything, as for performance intensive tasks, C# and C++ beat it, for multithreading, C# beats it, for web development, Node.js beats it, for community, Python beats it. For desktop apps, C# beats it. For game development, C# beats it. Is there anything it's still good at (No I don't care about Minecraft modding)?

Comments
hotnewtop
SixBeeps (5062)

Java is getting a little dated, but I'd say it still has a few uses.

The biggest one that comes to mind is cross-platform compatibility, which is something that not a lot of languages have nowadays. As someone who regularly uses C#, I'll admit .NET's terrible at cross-platform at the moment. Java has access to AWT, which is one of the largest sellers of the language.

Other than that, the only thing I can think of is enterprise. Java requires a lot of boilerplate, which supposedly makes you look busy :p

EpicGamer007 (1614)

Apparently, many people use it for this thing called "Spring" which seems to be the hype of the java community right now ¯_(ツ)_/¯.

EpicGamer007 (1614)

@SixBeeps the awt ui is quite dated unfortunately.

SixBeeps (5062)

@EpicGamer007 AWT is dated, but because of that it's runnable on almost every single OS that runs Java. Compare it to, say, WinForms or WPF, which is specifically for Windows.

xfinnbar (21)

@SixBeeps If C# is not very cross platform, I'd probably go with C-accelerated or JIT compiled Python as things like tkinter and pygame are great cross-platform.