top | item 46944165 (no title) moring | 20 days ago Did you mean arrays instead of lists? Arrays behave as you describe (with ArrayStoreException when you write a wrong value to an array). List<> is invariant WRT its type parameter. discuss order hn newest hmry|20 days ago Yeah, sorry, you're right. I have edited my comment. Thanks for the correction!
hmry|20 days ago