aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Warnings in Generics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Warnings in Generics " Watch "Warnings in Generics " New topic

Warnings in Generics

Deepthi Kanakam Rajan

Joined: May 15, 2006
Posts: 13
Hi All

Does assigning generic types to a raw type generate unchecked warnings or is it the other way round?

I am really confused about this as Whizlabs has mentioned the above statement while the document on Generics by Gilad Bracha states that assigning a raw type to a generic type generates unchecked warnings.

Appreciate a clarification on this.

Thanks in advance.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Why not write some code to verify whether warning messages are or are not generated?

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
It is sorta covered in the JavaRanch Style Guide.
subject: Warnings in Generics