MCQs
Total Questions : 105
| Page 9 of 11 pages
Answer: Option B. -> remove()
None.
Answer: Option D. -> addFirst()
None.
Answer: Option B. -> fill()
fill() method assigns a value to all the elements in an array, in other words it fills the
array with specified value.
Answer: Option C. -> approximately 2.72
None.
Answer: Option B. -> Enumeration
None.
Answer: Option B. -> length()
None.
Answer: Option A. -> final
A variable can be declared final, doing so prevents its content from being modified. Final variables
must be initialized when it is declared.
Answer: Option A. -> Map
Dictionary, Map & Hashtable all implement Map interface hence all of them uses keys
to store value in the object.
Answer: Option A. -> ArrayList()
None.
Answer: Option B. -> HashSet
HashSet and TreeSet implements Set interface where as LinkedList and ArrayList
implements List interface.