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

Home » Java » MCQs (Page-8)

Java Objective Questions (MCQs) - 225

Page 8 (141 - 160)


Question: 141

(A) 99
(B) 67
(C) Unpredictable Value
(D) NumberFormatException

Level: Practitioner Category of MCQ: typecasting



Question: 142

(A) Yes
(B) No

Level: Beginner Category of MCQ: exceptions



Question: 143

(A) -100
(B) Compilation Error
(C) Exception since catch is missing
(D) Exception since finally is missing

Level: Beginner Category of MCQ: exceptions



Question: 144

(A) Yes
(B) No It is compilation error

Level: Beginner Category of MCQ: exceptions



Question: 145

(A) -100
(B) null
(C) -100null
(D) null-100

Level: Practitioner Category of MCQ: exceptions



Question: 146

(A) -100null
(B) -100
(C) null
(D) Compilation Error - unreachable statement at line 8

Level: Practitioner Category of MCQ: exceptions



Question: 147

(A) Hello
(B) Compilation Error
(C) Exception
(D) None of these

Level: Practitioner Category of MCQ: classesAndobjects



Question: 148

(A) Compilation Error
(B) Exception
(C) Hi
(D) Hello

Level: Practitioner Category of MCQ: methods



Question: 149

(A) 12345
(B) 1234
(C) Compilation Error
(D) ArrayIndexOutOfBoundsException

Level: Expert Category of MCQ: arrays



Question: 150

(A) 20
(B) 10
(C) Compilation Error
(D) None of the above

Level: Practitioner Category of MCQ: methods



Question: 151

(A) Compilation Error
(B) 12345
(C) 246810
(D) Exception

Level: Practitioner Category of MCQ: arrays



Question: 152

(A) Arrays are passed by Value
(B) Arrays are passed by Reference
(C) It depends on type of array
(D) It depends on Compiler

Level: Beginner Category of MCQ: arrays



Question: 153

(A) Yes
(B) No

Level: Beginner Category of MCQ: abstractclass



Question: 154

(A) It is an Keyword
(B) Its is a Data type
(C) It is a Class
(D) None of the above

Level: Beginner Category of MCQ: abstractclass



Question: 155

(A) Yes
(B) No

Level: Expert Category of MCQ: abstractclass



Question: 156

(A) Yes
(B) No

Level: Practitioner Category of MCQ: abstractclass



Question: 157

(A) It reads first line of cppbuzz.txt file
(B) It reads first character of cppbuzz.txt file
(C) It reads all the contents of cppbuzz.txt file
(D) None of these

Level: Practitioner Category of MCQ: filehandling



Question: 158

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

Level: Beginner Category of MCQ: collection



Question: 159

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

Level: Practitioner Category of MCQ: collection



Question: 160

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

Level: Practitioner Category of MCQ: collection


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