Sudhakar Sadasivuni
Posts: 418
Nickname: sadasivuni
Registered: Nov, 2003
|
Sudhakar Sadasivuni is a Microsoft .NET MVP, a project engineer for Wipro technologies.
|
|
|
|
Java has finally catch up with C# (?)
|
Posted: Oct 13, 2004 11:41 PM
|
|
A Slashdot post and my buddy Ivarturi's blog pointed me to this..
"if you're doing C# and your foundations in OOP are rock-solid, there really isn't any difference whether you're coding C# or Java."
The list of enhancements to Java - Generics (C# 2.0 already supports this)
- Enhanced For-Loop (the foreach construct in C# 1.0, duh!)
- Autoboxing/Unboxing (C# 1.0 already has this, everything is an object, even the primitives - not really, but they do it so well...)
- Typesafe Enums (again C# 1.0 already implemented this, but I think they've added a little bit more twist in Java, that its actually a better implementation)
- Varargs (C# 1.0's params construct, ellipsis construct in C++)
- Static Import (I don't know if C# 1.0 has this, or C#2.0, but C# has a construct for aliasing your imports - which is way cooler. Static Import, actually promotes bad coding habits IMHO)
- Metadata/Annotations (this is C# 1.0's Attributes, Sun's upturned noses just gave it a fancier name - also,
C#'s implementation is better and more intuitive) I found this comment very interesting
Cakoose :- "C# vs Java, mostly a tie (c# good: ref and out parameters, indexers, foreach; c# bad: properties, operator overloading)"
Read: Java has finally catch up with C# (?)
|
|