كتير اوووى من الناس دايما بتسال ايه الفرق بين الجافا والسي شارب
طبعا الجافا والسي شارب دول لغات برمجه من النوع العام
طبعا السي شارب اسمها سي شارب دوت نت
اولا ايه موجود فى سي شارب ومش موجود فى الجافا :
Closures;
Runtime generics;
Generics of primitive types (benchmarks of this sorting a list of a million ints vs a million Integer objects have revealed a factor of 3 improvement);
Delegates;
Events;
LINQ;
Extension methods;
First-class properties;
Operator overloading;
Indexers;
Anonymous types;
Expression trees;
Using
blocks;
No checked exceptions.!
Decimal type;
As of C#: the dynamic
type
اما الجافا فيها حجات زى :
WAY, way better enums. C# enums are just ints with a stripe painted down the side. Java treating enums as objects with behaviour is far superior (imho);
I know this will be controversial: better IDEs, particularly in the realm of code refactoring where Visual Studio (without Resharper) is still lagging far behind Intellij, Eclipse and possibly even Netbeans;
It runs on Linux. Mono notwithstanding, Windows is by far .Net's biggest achilles heel (imho);
It's free. Java 6 + Glassfish + Eclipse + Linux costs you... nothing. Now do the same with .Net + IIS + VS + R# + Windows Server...;
IMHO the Java 5 concurrency utils package is still superior to any sort of concurrency tools that I've seen in C# to date; and
Significantly more open source projects but that lead is being rapidly diminished
0 التعليقات:
إرسال تعليق
اترك تعليقا على المقال ...