Which of these packages contain all the collection classes?

java-collections(part-I)-vlits

Quiz
•
Computers
•
1st Grade
•
Hard
kolla vivek
Used 29+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
java.lang
java.util
java.net
java.awt
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these classes is not part of Java’s collection framework?
Maps
Array
Stack
Queue
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of this interface is not a part of Java’s collection framework?
List
Set
SortedMap
SortedList
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these methods deletes all the elements from invoking collection?
clear()
reset()
delete()
refresh()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is Collection in Java?
A group of objects
A group of classes
A group of interfaces
None of the mentioned
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the output of this program?
import java.util.*;
class Array
{
public static void main(String args[]){
int array[] = new int [5];
for (int i = 5; i > 0; i--)
array[5-i] = i;
Arrays.fill(array, 1, 4, 8);
for (int i = 0; i < 5 ; i++)
System.out.print(array[i]);
}
}
12885
12845
58881
54881
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the output of this program?
import java.util.*;
class Bitset
{
public static void main(String args[]){
BitSet obj = new BitSet(5);
for (int i = 0; i < 5; ++i)
obj.set(i);
obj.clear(2);
System.out.print(obj);
}
}
{0, 1, 3, 4}
{0, 1, 2, 4}
{0, 1, 2, 3, 4}
{0, 0, 0, 3, 4}
Create a free account and access millions of resources
Similar Resources on Quizizz
30 questions
Web Development Quiz (GNAN 2K24)

Quiz
•
1st Grade
28 questions
Python по занятиям

Quiz
•
1st - 10th Grade
34 questions
Компьютеры, интернет и кибербезопасность.

Quiz
•
1st - 5th Grade
25 questions
Quis Struktur Data

Quiz
•
1st - 5th Grade
25 questions
Kuiz ICT Pengaturcaraan

Quiz
•
1st - 12th Grade
25 questions
Revisão Dispositivos Móveis

Quiz
•
1st - 5th Grade
25 questions
High-level Programming languages

Quiz
•
KG - 3rd Grade
32 questions
Mwd theory practice

Quiz
•
1st - 12th Grade
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
Discover more resources for Computers
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
44 questions
logos

Quiz
•
KG - University
20 questions
Guess that Disney

Quiz
•
KG - 5th Grade
20 questions
Cartoon Characters!

Quiz
•
KG - 5th Grade