Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Java » Collections

Java Interview Questions on Collection - 13 Questions


Question: 1

(A) Compilation Error
(B) Exception
(C) 1
(D) 0

Level: Beginner Category of MCQ: collection



Question: 2

(A) Nothing is printed
(B) IndexOutOfBoundsException
(C) Compilation Error
(D) 0

Level: Practitioner Category of MCQ: collection



Question: 3

(A) Nothing is printed
(B) Compilation Error
(C) Exception
(D) 5

Level: Practitioner Category of MCQ: collection



Question: 4

(A) Nothing is printed
(B) 5
(C) 0
(D) true

Level: Practitioner Category of MCQ: collection



Question: 5

(A) -1
(B) 0
(C) IndexOutOfBoundsException
(D) None of the above

Level: Practitioner Category of MCQ: collection



Question: 6

(A) true
(B) -2
(C) Compilation Error
(D) 0

Level: Practitioner Category of MCQ: collection



Question: 7

(A) 331
(B) 3321
(C) 310
(D) 321

Level: Practitioner Category of MCQ: collection



Question: 8

(A) True
(B) False

Level: Beginner Category of MCQ: collection



Question: 9

(A) 22
(B) 12
(C) 11
(D) 21

Level: Beginner Category of MCQ: collection



Question: 10

(A) True
(B) False

Level: Practitioner Category of MCQ: collection



Question: 11

(A) O(1)
(B) O(n)
(C) O(log(n))
(D) None of these

Level: Expert Category of MCQ: collection



Question: 12

(A) O(n)
(B) O(1)
(C) O(log(n))
(D) None of these

Level: Expert Category of MCQ: collection



Question: 13

(A) HashTable
(B) EnumSet
(C) Vector
(D) ArrayList

Level: Expert Category of MCQ: collection



Browse Java Categories

Datatype Variables Operators Decision Making Loops Methods Reference Variables Arrays Classes and Objects Abstract Class Singleton Class Modifiers Inheritance Overriding Polymorphism Abstraction Encapsulation Files and I/O TypeCasting Packages Exceptions Collections Framework Numbers Class Date & Time Regular Expressions Data Structures Interfaces Multithreading Other