Apache Commons/Apache Common Collections MCQ Sample Test,Sample questions

Question:
 Which provides better performance for the insertion and removal from the middle of the list?

1.Vector

2.ArrayList

3.LinkedList

4. All of these

Posted Date:-2022-04-06 11:08:37


Question:
concurrentSkipListMap allows

1.one null key

2.many null value

3.all

4.None

Posted Date:-2022-04-06 11:04:09


Question:
In Spark Streaming the data can be from what all sources?

 
 
 
 All of the above

1.Kafka

2.Flume

3.Kinesis

4.All of the above

Posted Date:-2022-04-06 11:23:58


Question:
Iterator returned by ConcurrentHashMap on key, value and entry is?

1.Fail-fast

2.Fail-safe

3.none

4.All of the above

Posted Date:-2022-04-06 11:10:28


Question:
Spark is developed in which language

 
 
 
 R

1.Java

2.Scala

3.Python

4.R

Posted Date:-2022-04-06 11:22:53


Question:
The accuracy and efficiency of a HashMap can be guaranteed with

1. override equals method

2.Override hashCode method

3.None of these

4.All of these

Posted Date:-2022-04-06 11:04:53


Question:
The Comparable interface contains which called?

1.toCompare

2.compare

3.compareTo

4.compareWith

Posted Date:-2022-04-06 11:06:49


Question:
Which allows the removal of elements from a collection?

1.Enumeration

2.Iterator

3.Both

4.None

Posted Date:-2022-04-06 11:05:41


Question:
Which is best suited to a multi-threaded environment?

1.WeakHashMap

2.Hashtable

3.HashMap

4.ConcurrentHashMap

Posted Date:-2022-04-06 11:03:20


Question:
Which Map is synchronized?

1. Hashtable

2.ConcurrentSkipListMap

3.ConcurrentHashMap

4.All of these

Posted Date:-2022-04-06 11:01:11


Question:
Which of these class should be preferred to be used as a key in a HashMap?

1. String

2. Integer

3.Double

4.Any of these

Posted Date:-2022-04-06 11:09:26


Question:
Which of these is not an interface in the Collections Framework?

1.Collection

2.group

3.Set

4.List

Posted Date:-2022-04-06 11:02:11


More MCQS

  1. Apache Common Collections MCQ
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!