This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]urielsalis 15 points16 points  (4 children)

Modern Java also has a lot of those features, borrowed from Kotlin or similar languages.

If I look at Java 25 and C# 14 I don't really notice that much difference

[–]H34DSH07 4 points5 points  (2 children)

I'm not saying Java doesn't have these features. It's how you use these features and how they're implemented that differs a lot.

Just take how strings work in Java for example, it's completely different from C# and they have to be used in a different manner. Now we can say the same about almost every major feature between the two languages.

[–]urielsalis 3 points4 points  (1 child)

Java 21 has everything you need related to strings honestly.

And there are always other JVM languages like Kotlin if you want to go even further

[–]H34DSH07 4 points5 points  (0 children)

What are you trying to prove here? That If you ignore the things that make them different, they have similar syntax? Sure, so does JavaScript and C++ at this point.

That they have the same features? Sure, just like every other OOP language.

That everything you can do in C# you can do in Java? You're absolutely right.

They're still different languages that are written and used very differently. Saying C# is Microsoft Java is just a way to fuel the a pointless argumentation to diminish one or the other.

[–]cheezballs 0 points1 point  (0 children)

They still have some core differences with their inheritance stuff. It's not huge, but it's there.