--:--









Quiz for HashMap vs TreeMap

Course: JAVA | Subject: Java | Topic: Java Collections Framework



Logo

Q1: Which class maintains the natural ordering of keys?

Logo

Q2: Which class allows one null key?

Logo

Q3: Which collection uses a Red-Black Tree internally?

Logo

Q4: Which class provides constant-time performance for get and put?

Logo

Q5: Which collection guarantees log(n) time complexity for insertions?

Logo

Q6: Which collection is best suited when ordering of keys is not important?

Logo

Q7: Which class implements the NavigableMap interface?

Logo

Q8: Which map can accept null values?

Logo

Q9: Which class is faster for frequent insertions and deletions?

Logo

Q10: Which class provides methods like lowerKey(), higherKey(), and ceilingKey()?

Are you ready to start test? Set your time limit