Search Header Logo

java collections

Authored by MCE-ECE- MUTHURAJ.R

Computers

University

Used 98+ times

java collections
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Collection in Java?

A group of objects

A group of classes

A group of interfaces

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these interface is not part of Java’s collection framework?

List

Sorted List

Set

Sorted Map

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

 What will be the output of the  Java program?

{0, 1, 3, 4}

{0, 1, 2, 4}

{0, 1, 2, 3, 4}

{0, 0, 0, 3, 4}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these return type of hasNext() method of an iterator?

Integer

Double

Boolean

Collections Object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these exceptions is thrown by remover() method?

IOException

SystemException

ObjectNotFoundExeception

IllegalStateException

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these methods deletes all the elements from invoking collection?

clear();

reset();

delete();

remove();

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these interface declares core method that all collections will have?

Collection

EventListner

Comparator

Set

List

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?