
java collections
Authored by MCE-ECE- MUTHURAJ.R
Computers
University
Used 97+ times

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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?