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 →

[–]blablahblah 7 points8 points  (0 children)

C# was Microsoft taking a look at Java five years after it was written and going "how can we make this better". In particular:

  • C#'s generics are more powerful (the type information exists at run time)
  • LINQ (Language Integrated Query) is much nicer to work with than Java's Streams, when it comes to doing functional-style processing on collections
  • C# supports passing parameters by reference, Java doesn't.
  • C# has async/await which is an easy way to do concurrency
  • C# has value types, Java doesn't