Examples where Java is more elegant than C #?

It's been a couple of years since the last time I worked with Java. Can you say which problems can be solved more elegantly in Java?

I am aware of the following benefits of Java:

  • Java "works everywhere"
  • Java supports units and measures
  • (supposedly) better latency in Java
  • J2EE (I don't think .Net has an equivalent)
  • a different approach to generics (with odd circular definitions such as "Enum>", see Ken Arnold )

What about generics - are there any elegant Java examples that can't be represented in C #? Or other APIs or libraries?

Thanks,

Jiri

PS some common links:

+3
2

Java #. , , , - . , , , ( ), , .NET- .NET.

, Java "", IMO - . # . Java . # , ( EnumSet) .

( ) Java - Java, #.

Java, # , , # , Java. , - , Java # .NET .

+7

" " ?

, . , # - , Java. Java , (, ), , .

-1

Source: https://habr.com/ru/post/1702885/


All Articles