r/learnjava • u/kres0345 • 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
5
u/desrtfx Jun 21 '21
Java's enums are superior to C#'s implementation by lengths.
Java has had generics for quite some time already.
Java has had streams and lambdas since version 8 - we are currently at 16 with 17 round the corner.
You cannot talk Java if your sole experience is Android and your sole backing is an article that is talking close to 10 versions behind current.
Android is a subset of a fairly old Java framework.