e: I only ask because I've always heard the opposite.
e: I only ask because I've always heard the opposite.
Type inference, properties, extension methods, operator overloading, p/invoke vs JNI (plus C# has better unsafe code support), structs, reified generics, async/await
For example, apart from LINQ, generics in C# dont do type erasure, as in Java. I am sure there are few more. [1]
Of course, Java running on so many platforms is nothing less than a miracle but I am of opinion that C# language is more matured than Java language
Java has some really fancy JIT compilers designed for servers but .NET is much more AoT/native interop friendly with value types and reified generics, you can get a lot closer to C++ like code with C# than with Java (avoiding GC with structs, controlling memory layouts in collections, etc.)