Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

java Collection Syntax

Thu Oct 23, 2008 12:12 am

Could you please explain me the following declaration. Collection is very
complicated for me.

Map<Object, ? super ArrayList> m = new LinkedHashMap<Object, ArrayList>()
What is the meaning of "?" ?



Re: java Collection Syntax

Thu Oct 23, 2008 12:13 am

? super ArrayList means you can use any super type of Arraylist.
Map<Object, ArrayList>
Map<Object, List>
Map<Object, Object>

all these are available for declaration.

Post a reply
  Related Posts  to : java Collection Syntax
 correct syntax for access providers in java     -  
 Interface Collection and Class Collection     -  
 java(collection framework)     -  
 garbage collection work in java     -  
 PHP Syntax     -  
 syntax of the session_start () in php     -  
 AJAX SYNTAX ERROR IE     -  
 compiler code of syntax analyzer in C++     -  
 What Is Garbage Collection?     -  
 Huge collection of SEMINAR Topics     -