Which of the following is a correct difference between ArrayList and Vector?

Java Collections

Quiz
•
Computers
•
Professional Development
•
Easy
Easwari Theetharappan
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ArrayList increases its size by doubling the array size while Vector increases by 50% of the array size.
ArrayList is synchronized while Vector is not.
ArrayList is not a legacy class while Vector is the legacy.
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When would you choose to use ArrayList over LinkedList in an application?
ArrayList is preferred when there is more demand for get via index operations.
ArrayList is preferred when there is growing need of merging or sorting operations.
ArrayList is preferred when there are frequent insertions or deletions required in the application.
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct method to convert the array of strings into a list?
Arrays class toList() method
Arrays class asList() method
Arrays class doList() method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct difference between List and Set?
List maintains no order whereas Set maintains ascending order.
List contain only unique elements whereas Set can contain duplicate elements.
List can hold duplicate elements while Set includes only unique elements.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct difference between HashMap and TreeMap?
HashMap maintains no order but TreeMap maintains ascending order.
HashMap contains only values whereas TreeMap contains key and values both.
HashMap can contain duplicate elements whereas TreeMap contains only unique elements.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following method you need to override for using an object as key in a HashMap?
hashValue()
hashCode()
hashKey()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When would you choose to use LinkedList over ArrayList in an application?
LinkedList is preferred when application requires to perform merging or sorting operations.
LinkedList is preferred when applications needs to support insertions or deletions of elements.
LinkedList is preferred when application requires to perform frequent get or search operations.
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Data Structure

Quiz
•
Professional Development
20 questions
js DOM

Quiz
•
12th Grade - Professi...
10 questions
Collections MQC

Quiz
•
Professional Development
20 questions
Advanced JavaScript

Quiz
•
Professional Development
15 questions
Queues

Quiz
•
11th Grade - Professi...
20 questions
Data Structure

Quiz
•
Professional Development
10 questions
REC 03 JAVA

Quiz
•
Professional Development
10 questions
Java Collections

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade