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

My name is Amod Mahajan and I am an IT employee with 6+ years of experience in Software testing and staying in Bengaluru. My area of interest is Automation testing. I started from basics and went through so many selenium tutorials. Thanks to Mukesh Otwani as his tutorials are easy and cover basics to advance. I have habit of exploring concepts by deep diving. I used to make notes. I thought of sharing my knowledge through posts and now I am here. #KeepLearning #ShareLearning

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: