开发者

Differences between Generics in C#/.NET and in Java [duplicate]

This question already has answers here: 开发者_运维知识库 Closed 12 years ago.

Possible Duplicate:

C# vs Java generics

What is the differences between implementation of generics in C#/.NET and in Java?

What is the differences between support of generics by theirs runtime/vm?


I don't like to re-hash content already available...so check out Jonathan Pryor's comparison of Java and C# Generics on his blog.

The second half of the post is dedicated to the implementation of each on their respective VMs.


Main difference is that generics are supported at the language and VM level in .NET, whereas in Java, they are only supported at the language level (JVM doesn't know anything about generics).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜