What does Map<?, ?> mean in Java? I've looked online but can't seem to find any articles on it.
Map<?, ?>
edit : I found this on MP3 Duration Java
Map<?,?> means that at compile time, you do not know what the class type of the key and value object of the Map is going to be.
Map<?,?>
Its a wildcard type. http://download.oracle.com/javase/tutorial/extra/generics/wildcards.html
1.4m articles
1.4m replys
5 comments
57.0k users