r/learnjava • • Jun 21 '21

Why learn Java when there's C#?

I am genuinely curious, as it seems C# has superseded Java in many regards. The only reason I can think of using Java is backward compatibility.

EDIT: To clarify, the main selling point of Java was cross-platform, but nowadays most frameworks and toolsets are to some degree cross-platform, including .NET Core, which is the new main framework of C#.

0 Upvotes

36 comments sorted by

View all comments

0

u/[deleted] Jun 21 '21

[deleted]

0

u/kres0345 Jun 21 '21

Makes sense, Java is still pretty widely used, but I think that's mostly because it's old systems or projects with large codebases of Java, where changing the language is undesirable.

As for as I know most C# jobs come in the shape of ASP.NET or similar.

2

u/berry120 Jun 21 '21

"Java is still pretty widely used, but I think that's mostly because it's old systems or projects with large codebases of Java"

This was kind of true 10 years ago, but couldn't be less true today. When searching for jobs I see *way* more greenfield Java projects around these parts (UK, London) than I do C#. Java & Go seem to be particularly popular languages of choice these days, I'd say anecdotally node.js even seems to be tailing off a bit from a few years back.