function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Yes, null is always a valid map key for any type of map key (including primitives, sobjects, and user-defined objects).
Do you mean doing something like this?
Map<String, String> myMap = new Map<String, String>{}; myMap.put('key1', null);
If so, then yes you can do that.
map <srtring, string > map1 = new map <string,string> ();
map1.put <null,keypair1>
is it possible?
Yea, though just like any other key you can only have one "value" associated with it.
Yes, null is always a valid map key for any type of map key (including primitives, sobjects, and user-defined objects).
Do you mean doing something like this?
If so, then yes you can do that.
map <srtring, string > map1 = new map <string,string> ();
map1.put <null,keypair1>
is it possible?
Yea, though just like any other key you can only have one "value" associated with it.
map1.put(null, 'Salesforce');
System.debug(map1);
Map<string,string> map1 = new Map<String,String>();
map1.put(null, 'Salesforce');
System.debug(map1);