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:
Post a Comment