• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wild Card notation

 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Why AnimalHolder<?> any=new AnimalHolder<>(); works here ? neither that is an Animal nor subclass of it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic