wood burning stoves*
The moose likes Beginning Java and the fly likes Wild Card notation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Wild Card notation" Watch "Wild Card notation" New topic
Author

Wild Card notation

meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305



Why AnimalHolder<?> any=new AnimalHolder<>(); works here ? neither that is an Animal nor subclass of it.


My one regret in life is that I am not someone else.
- Woody Allen
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Wild Card notation