Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

You are here : Home » Java » Java Interview Questions on Collection

Java Interview Questions on Collection - 13 Questions


Question: 1

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

[Posted by: Admin | Location: Chicago, USA]



Question: 2

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

[Posted by: Admin | Location: Chicago, USA]



Question: 3

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

[Posted by: Admin | Location: Chicago, USA]



Question: 4

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

[Posted by: Admin | Location: Chicago, USA]



Question: 5

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

[Posted by: Admin | Location: Chicago, USA]



Question: 6

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

[Posted by: Admin | Location: Chicago, USA]



Question: 7

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

[Posted by: Admin | Location: Chicago, USA]



Question: 8

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 9

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

[Posted by: Admin | Location: Chicago, USA]



Question: 10

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 11

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

[Posted by: Admin | Location: Chicago, USA]



Question: 12

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

[Posted by: Admin | Location: Chicago, USA]



Question: 13

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

[Posted by: Admin | Location: Chicago, USA]


[Contribute to this Website]


Java Objective Questions By Different 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 | Serialization | Multithreading | Networking | Sending Email | Applet Basics | Other