Java Objective Questions (MCQs) - 225
page 9 (161 - 180)
Question: 161
(A) Nothing is printed
(B) 5
(C) 0
(D) true
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]
Question: 162
(A) -1
(B) 0
(C) IndexOutOfBoundsException
(D) None of the above
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]
Question: 163
(A) true
(B) -2
(C) Compilation Error
(D) 0
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]
Question: 164
Question: 165
(A) True
(B) False
Level: Beginner Category: collection
[Posted by: Admin | Chicago, USA]
Question: 166
(A) 22
(B) 12
(C) 11
(D) 21
Level: Beginner Category: collection
[Posted by: Admin | Chicago, USA]
Question: 167
(A) True
(B) False
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]
Question: 168
(A) O(1)
(B) O(n)
(C) O(log(n))
(D) None of these
Level: Expert Category: collection
[Posted by: Admin | Chicago, USA]
Question: 169
(A) O(n)
(B) O(1)
(C) O(log(n))
(D) None of these
Level: Expert Category: collection
[Posted by: Admin | Chicago, USA]
Question: 170
(A) 1
(B) Depends on the calling program
(C) Depends on class creating object of Singleton class
(D) 256
Level: Practitioner Category: singleton
[Posted by: Admin | Chicago, USA]
Question: 171
(A) True
(B) False
Level: Beginner Category: packages
[Posted by: Admin | Chicago, USA]
Question: 172
(A) True
(B) False
Level: Beginner Category: packages
[Posted by: Admin | Chicago, USA]
Question: 173
(A) True
(B) False
Level: Beginner Category: packages
[Posted by: Admin | Chicago, USA]
Question: 174
(A) Yes
(B) No
Level: Beginner Category: overriding
[Posted by: Admin | Chicago, USA]
Question: 175
(A) cppbuzz-11
(B) cppbuzz-11.0
(C) hello-11
(D) hello-11.0
Level: Practitioner Category: overriding
[Posted by: Admin | Chicago, USA]
Question: 176
(A) HashTable
(B) EnumSet
(C) Vector
(D) ArrayList
Level: Expert Category: collection
[Posted by: Admin | Chicago, USA]
Question: 177
(A) Autoboxing
(B) Morphing
(C) Unboxing
(D) Typecasting
Level: Expert Category: other
[Posted by: Admin | Chicago, USA]
Question: 178
(A) class-A class-A
(B) class-B class-B
(C) class-B class-A
(D) class-A class-B
Level: Practitioner Category: polymorphism
[Posted by: Admin | Chicago, USA]
Question: 179
(A) void methodA(){} int methodA(){}
(B) void methodA(){} void methodA(int a){}
(C) void methodA(){} int methodB(int a){}
(D) int methodA(){} int methodAA(i{}
Level: Practitioner Category: polymorphism
[Posted by: Admin | Chicago, USA]
Question: 180
(A) True
(B) False
Level: Practitioner Category: packages
[Posted by: Admin | Chicago, USA]