Solved

Assume That You Have Declared a Set Named MySet to Hold

Question 77

Multiple Choice

Assume that you have declared a set named mySet to hold String elements. Which of the following statements will correctly insert an element into mySet?


A) mySet.insert("apple") ;
B) mySet.put(apple") ;
C) mySet.push("apple") ;
D) mySet.add("apple") ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions