I am surprised that no one mentioned properties, something completely fundamental in C #, but missing from Java. C # 3 and above also automatically implemented properties. In Java, you should use methods like GetX / SetX.
Another obvious difference is LINQ and lambda expressions in C # 3, which are missing in Java.
There are several other simple but useful things missing from Java, such as verbatim (@ ") strings, operator overloading, and iterators using output and preprocessors are also missing in Java.
One of my personal favorites in C # is that namespace names should not follow the structure of a physical directory. I really like this flexibility.
Pratik Jan 06 '10 at 20:37 2010-01-06 20:37
source share