Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wild Card notation

 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic