InterviewSolution
Saved Bookmarks
| 1. |
Which of these method of HashSet class is used to add elements to its object?(a) add()(b) Add()(c) addFirst()(d) insert()This question was addressed to me at a job interview.The origin of the question is Java.util in chapter java.util – The Collections Framework of Java |
|
Answer» The CORRECT OPTION is (a) ADD() |
|