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

Home » Java » Objective Questions And Ans (Page-9)

Java Objective Questions (MCQs) - 224

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

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

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



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]


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