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

Home » Java » MCQs (Page-9)

Java Objective Questions (MCQs) - 225

Page 9 (161 - 180)


Question: 161

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

Level: Practitioner Category of MCQ: collection



Question: 162

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

Level: Practitioner Category of MCQ: collection



Question: 163

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

Level: Practitioner Category of MCQ: collection



Question: 164

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

Level: Practitioner Category of MCQ: collection



Question: 165

(A) True
(B) False

Level: Beginner Category of MCQ: collection



Question: 166

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

Level: Beginner Category of MCQ: collection



Question: 167

(A) True
(B) False

Level: Practitioner Category of MCQ: collection



Question: 168

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

Level: Expert Category of MCQ: collection



Question: 169

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

Level: Expert Category of MCQ: collection



Question: 170

(A) 1
(B) Depends on the calling program
(C) Depends on class creating object of Singleton class
(D) 256

Level: Practitioner Category of MCQ: singleton



Question: 171

(A) True
(B) False

Level: Beginner Category of MCQ: packages



Question: 172

(A) True
(B) False

Level: Beginner Category of MCQ: packages



Question: 173

(A) True
(B) False

Level: Beginner Category of MCQ: packages



Question: 174

(A) Yes
(B) No

Level: Beginner Category of MCQ: overriding



Question: 175

(A) cppbuzz-11
(B) cppbuzz-11.0
(C) hello-11
(D) hello-11.0

Level: Practitioner Category of MCQ: overriding



Question: 176

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

Level: Expert Category of MCQ: collection



Question: 177

(A) Autoboxing
(B) Morphing
(C) Unboxing
(D) Typecasting

Level: Expert Category of MCQ: other



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 of MCQ: polymorphism



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 of MCQ: polymorphism



Question: 180

(A) True
(B) False

Level: Practitioner Category of MCQ: packages


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