Hi,
I am new to Java6.I have a basic question reagrding hashmap,arraylist,Set using Java6.
How should we define these when you are not sure what dataType they carry.
If i am sure that they carry
String,I could define them as HashMap<String,String> abc = new HashMap<String,String>();
Can I do this,if I am not sure what dataType HashMap<?,?> abc = new HashMap<String,String>
From my reading "?" is used when you want to extend user defined class.(Correct me if I am wrong).
Can you also point me where I can get examples on how to use generics.
Thanks