Comment Re:Mono needs a similar testsuite. (Score 1) 271
Of course in Java you can do that contrived example as TreeSet.iterator( ), so it really doesn't take any significant code using the basic libraries in the language.
Your type inference is really just shorthand, I don't really see that as an advantage in any significant way either.
C# and Java are now both heavily plagiarized from each other. If you are explicitly coding for Windows, C# has the advantage that it mimics the underlying Windows API. If your code ever has to run anywhere else, Java is probably the better choice. Unfortunately I think Java picked up a few of the bad ideas from C# in the last couple of revisions, but that's just my opinion.