CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL Javascript Linux Forum

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

DiscussOnForum
Beginner collection[Posted by: Admin | Chicago, USA]



Question: 2

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 3

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 4

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 5

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 6

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 7

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 8

(A) True
(B) False

DiscussOnForum
Beginner collection[Posted by: Admin | Chicago, USA]



Question: 9

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

DiscussOnForum
Beginner collection[Posted by: Admin | Chicago, USA]



Question: 10

(A) True
(B) False

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 11

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

DiscussOnForum
Expert collection[Posted by: Admin | Chicago, USA]



Question: 12

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

DiscussOnForum
Expert collection[Posted by: Admin | Chicago, USA]



Question: 13

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

DiscussOnForum
Expert collection[Posted by: Admin | Chicago, USA]


[Contribute to this Website]


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 Serialization Multithreading Networking Sending Email Applet Basics Other