Question
a.
add()
b.
Add()
c.
addFirst()
d.
insert()
Posted under Java Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of these method of HashSet class is used to add elements to its object?
Similar Questions
Discover Related MCQs
Q. Which of these methods can be used to delete the last element in a LinkedList object?
View solution
Q. Which of this method is used to change an element in a LinkedList Object?
View solution
Q. Which of these object stores association between keys and values?
View solution
Q. Which of these classes provide implementation of map interface?
View solution
Q. Which of these method is used to remove all keys/values pair from the invoking map?
View solution
Q. Which of these method Map class is used to obtain an element in the map having specified key?
View solution
Q. Which of these methods can be used to obtain set of all keys in a map?
View solution
Q. Which of these method is used add an element and corresponding key to a map?
View solution
Q. Which of these class object can be used to form a dynamic array?
View solution
Q. Which of these are legacy classes?
View solution
Q. Which of these is the interface of legacy?
View solution
Q. What is the name of a data member of class Vector which is used to store a number of elements in the vector?
View solution
Q. Which of these methods is used to add elements in vector at specific location?
View solution
Q. Which of these class object uses the key to store value?
View solution
Q. Which of these method is used to insert value and its key?
View solution
Q. Which of these is the interface of legacy is implemented by Hashtable and Dictionary classes?
View solution
Q. Which of these is a class which uses String as a key to store the value in object?
View solution
Q. Which of these methods is used to retrieve the elements in properties object at specific location?
View solution
Q. Which of these class object has an architecture similar to that of array?
View solution
Q. Which of these method is used to make a bit zero specified by the index?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!