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

1

u/[deleted] Jun 21 '21

[removed] — view removed comment

1

u/kres0345 Jun 21 '21

So... learn java because there's more open source projects using java?

2

u/[deleted] Jun 21 '21

[removed] — view removed comment

1

u/kres0345 Jun 22 '21

The link referred actually states that rivers are more popular than washing machines? To follow your analogy. This question is what made me post to begin with.

As far as I've understood from reading responses, Java is more true to it's original values and has far fewer features than C#, thus making it easier to understand for all developers instead of having some niche features -- thus the river, can do the same as the washing machine but it's more verbose and takes longer.

C# being feature-rich and having sugar and nice syntax (according to other redditors in this thread) -- the feature-rich washing machine, faster than the river.

It's actually a good analogy you come up with.