Submit a bug or feature Which of these methods map class is used to obtain an element in the map having specified key?Explanation: keySet() methods is used to get a set containing all the keys used in a map.
Which method in MAP is used to obtain an element?The get() method returns a specified element from a Map object.
Which method is used add an element and corresponding key to a map?set() The set() method adds or updates an entry in a Map object with a specified key and a value.
Which of these methods is used to add elements in properties at a specific location?5. Which of these methods is used to add elements in vector at specific location? Explanation: addElement() is used to add data in the vector, to obtain the data we use elementAt() and to first and last element we use firstElement() and lastElement() respectively. 6.
|