Total members 11894 |It is currently Fri Nov 22, 2024 4:18 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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 "?" ?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

? 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.

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  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     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com