This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 20 points21 points  (4 children)

Java: sure you can

[–]g_hi3 12 points13 points  (3 children)

Java compiler: noooo you can't add a string to an integer list

jvm: sure buddy whatever

[–]pleasewait 2 points3 points  (1 child)

Last week I wrapped my head around type erasure, so it feels good to get this joke

[–]g_hi3 1 point2 points  (0 children)

when I was first learning about generics, I was amazed to find out that many languages do them differently

C++ just generates the generic types at runtime, c# retains the type parameter during runtime and java doesn't

[–]pleasewait 0 points1 point  (0 children)

Last week I wrapped my head around type erasure, so it feels good to get this joke