Wednesday, September 23, 2009

Java is better than I last time I used it.

1) Enums: Way more powerful than .NET. You can add values, other properties, constructors, toString() override, interfaces, etc. Enums were VERY weak in older versions of java.

2) for( x : y) // Like .NET foreach keyword

3) Generics: hashmap

4) @annotations // Like .NET [attributes]

---

.NET still wins on:

1) Not so much boxing/unboxing.

No comments: