java collections

java collections

University

31 Qs

quiz-placeholder

Similar activities

Lunch & Did You Learn?

Lunch & Did You Learn?

University

30 Qs

MongoDB

MongoDB

University

31 Qs

java

java

1st Grade - University

30 Qs

CS 211 - Midterm Review

CS 211 - Midterm Review

University

30 Qs

Data Structure PrelimExam

Data Structure PrelimExam

University

35 Qs

Java Programming - Second Internal Examination

Java Programming - Second Internal Examination

University

30 Qs

Java Collections

Java Collections

University

31 Qs

Java Collections_V

Java Collections_V

University

30 Qs

java collections

java collections

Assessment

Quiz

Computers

University

Hard

Created by

MCE-ECE- MUTHURAJ.R

Used 91+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?