Make Selenium Easy

Core Java Quiz 3 – Collections Framework

collection is an object that represents a group of objects. A collections framework is a unified architecture for representing and manipulating collections, enabling collections to be manipulated independently of implementation details.

Reference -  Official Javadoc

Let's learn about the Collections framework by answering some questions below.

1. Which interface below is the root of the collection hierarchy?
2. Class LinkedList implements below interface/s?
3. What is common between List and Set in Collections Framework?
4. Which statement is not correct about List?
5. Which statement is not correct about Set?
6. Tick all correct implemented classes of List from below?
7. Tick all correct implemented classes of Set from below?
8. Which method can be used to check if a collection has no elements?
9. Which method is used to get number of elements present in a collection?
10. Which method is used to delete all elements from a collection?

Author: Amod Mahajan

A software Tester who is paid to judge products developed by others. Currently getting paid in American Dollars. Writing technical posts and creating YouTube videos are my hobbies.

1 thought on “Core Java Quiz 3 – Collections Framework

Leave a Reply

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.

Core Java Quiz 3 – Collections Framework

by Amod Mahajan time to read: <1 min
1
%d bloggers like this: