3

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?

1
  • @Darin, @ColinD, @Oded, @Ian Henry, @Pablo: Sorry, Related didn't listed that question. Thanks! Commented Nov 12, 2010 at 18:35

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

Comments

2

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).

1 Comment

That's right... No runtime type information on generic types in java. Sad.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.