Over that 20 years, C# has been continuously improved with language features added at a faster rate than Java. Some examples:
* properties
* LINQ
* async/await
* dynamic types
* better generics
* inferred typing - `var`
* null conditional operators
* custom iterators - `yield`
* pattern matching
Also, .net is more of a “pit of success” language — Java with all its legacy baggage requires a lot more knowledge to avoid mistakes.