Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Wildcards in Generics

Share this post!
 Vote this!

In this section, you will learn the use wildcards or wildcard character in Generics.

Problem :

For better understanding of wildcards, we are taking a scenario :
Take a look at the following code :
List<String> strArrayList = new ArrayList<String>(); 
strArrayList.add(new String("Genrics"));
strArrayList.add(new String("Genrics Wildcards"));  more...

0 comments:

Post a Comment