query: Why are generics needed when we can do casting to Object class?
positive_passages.docid: 10919
positive_passages.text: What is cool about generics, why use them?
negative_passages.docid: 11995
negative_passages.text: Why should casting be avoided?
negative_passages.docid: 12573
negative_passages.text: Why can't a Generic Type Parameter have a lower bound in Java?
negative_passages.docid: 5082
negative_passages.text: How do I use reflection to call a generic method?
negative_passages.docid: 89994
negative_passages.text: Why do we need immutable class?
negative_passages.docid: 94251
negative_passages.text: Is it possible to assign a base class object to a derived class reference with an explicit typecast?
negative_passages.docid: 36327
negative_passages.text: Why cast an unused function parameter value to void?
negative_passages.docid: 31796
negative_passages.text: Why cannot IEnumerable be cast as IEnumerable?
negative_passages.docid: 93171
negative_passages.text: Polymorphism and casting
negative_passages.docid: 153366
negative_passages.text: Is there any benefit of using an Object Initializer?
negative_passages.docid: 132711
negative_passages.text: Generics and inheritance: need a complex Map instance
negative_passages.docid: 91675
negative_passages.text: What's the difference between  and  in Java Generics?
negative_passages.docid: 41444
negative_passages.text: What are the reasons why Map.get(Object key) is not (fully) generic
negative_passages.docid: 117655
negative_passages.text: What is the benefit of polymorphism using Collection interface to create ArrayList object?
negative_passages.docid: 142119
negative_passages.text: Reason for using non-type template parameter instead of regular parameter?
negative_passages.docid: 116187
negative_passages.text: How to efficiently create a list of objects inside of a generic method?
negative_passages.docid: 134266
negative_passages.text: Casting a class to an unrelated interface