开发者

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

开发者 https://www.devze.com 2023-01-25 08:29 出处:网络
This question already has answers here: 开发者_运维知识库Closed 12 years ago. Possible 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

精彩评论

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