Java Objective Questions (MCQs) - 225
Page 8 (141 - 160)
Question: 141
(A) 99
(B) 67
(C) Unpredictable Value
(D) NumberFormatException
Level: Practitioner Category: typecasting
[Posted by: Admin | Chicago, USA]
Question: 142
(A) Yes
(B) No
Level: Beginner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 143
(A) -100
(B) Compilation Error
(C) Exception since catch is missing
(D) Exception since finally is missing
Level: Beginner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 144
(A) Yes
(B) No It is compilation error
Level: Beginner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 145
(A) -100
(B) null
(C) -100null
(D) null-100
Level: Practitioner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 146
(A) -100null
(B) -100
(C) null
(D) Compilation Error - unreachable statement at line 8
Level: Practitioner Category: exceptions
[Posted by: Admin | Chicago, USA]
Question: 147
(A) Hello
(B) Compilation Error
(C) Exception
(D) None of these
Level: Practitioner Category: classesAndobjects
[Posted by: Admin | Chicago, USA]
Question: 148
(A) Compilation Error
(B) Exception
(C) Hi
(D) Hello
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]
Question: 149
(A) 12345
(B) 1234
(C) Compilation Error
(D) ArrayIndexOutOfBoundsException
Level: Expert Category: arrays
[Posted by: Admin | Chicago, USA]
Question: 150
(A) 20
(B) 10
(C) Compilation Error
(D) None of the above
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]
Question: 151
(A) Compilation Error
(B) 12345
(C) 246810
(D) Exception
Level: Practitioner Category: arrays
[Posted by: Admin | Chicago, USA]
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: arrays
[Posted by: Admin | Chicago, USA]
Question: 153
(A) Yes
(B) No
Level: Beginner Category: abstractclass
[Posted by: Admin | Chicago, USA]
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: abstractclass
[Posted by: Admin | Chicago, USA]
Question: 155
(A) Yes
(B) No
Level: Expert Category: abstractclass
[Posted by: Admin | Chicago, USA]
Question: 156
(A) Yes
(B) No
Level: Practitioner Category: abstractclass
[Posted by: Admin | Chicago, USA]
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: filehandling
[Posted by: ASISH ARAVIND | Des Moines USA]
Question: 158
(A) Compilation Error
(B) Exception
(C) 1
(D) 0
Level: Beginner Category: collection
[Posted by: Admin | Chicago, USA]
Question: 159
(A) Nothing is printed
(B) IndexOutOfBoundsException
(C) Compilation Error
(D) 0
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]
Question: 160
(A) Nothing is printed
(B) Compilation Error
(C) Exception
(D) 5
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]