What is a raw type and why shouldn't we use it?

Posted by polygenelubricants on Stack Overflow See other posts from Stack Overflow or by polygenelubricants
Published on 2010-05-05T02:48:53Z Indexed on 2010/05/05 2:58 UTC
Read the original article Hit count: 215

Questions:

  • What are raw types in Java, and why do I often hear that they shouldn't be used in new code?
  • What is the alternative if we can't use raw types, and how is it better?

Similar questions

© Stack Overflow or respective owner

Related posts about java

Related posts about generics