Search Header Logo

java.util – Collections Framework-9

Authored by ANIL KUMAR

English

Professional Development

Used 18+ times

java.util – Collections Framework-9
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

147 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these standard collection classes implements a dynamic array?

AbstractList
LinkedList
ArrayList
AbstractSet

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these class can generate an array which can increase and decrease in size automatically?

ArrayList()
DynamicList()
LinkedList()
MallocList()

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these method can be used to increase the capacity of ArrayList object manually?

Capacity()
increaseCapacity()
increasecapacity()
ensureCapacity()

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these method of ArrayList class is used to obtain present size of an object?

size()
length()
index()
capacity()

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these methods can be used to obtain a static array from an ArrayList object?

Array()
covertArray()
toArray()
covertoArray()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these method is used to reduce the capacity of an ArrayList object?

trim()
trimSize()
trimTosize()
trimToSize()

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following Java program? https://gyazo.com/33f13b49749f6661b34ad51e60ca84b0

[A, B, C, D]

[A, D, B, C]

[A, D, C]

[A, B, C]

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?