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

Home » Java » Java Multiple Choice Questions For Beginners

Java Multiple Choice Questions For Beginners - 25

Page 2 of 4 Showing 25 Questions


Question: 25

(A) True
(B) False

Level: Beginner Category of MCQ: other



Question: 26

(A) True
(B) False

Level: Beginner Category of MCQ: other



Question: 27

(A) 12345
(B) 123
(C) 124
(D) 135

Level: Beginner Category of MCQ: arrays



Question: 28

(A) 12345
(B) Nothing is printed
(C) 1
(D) Infinite times

Level: Beginner Category of MCQ: arrays



Question: 29

(A) 3
(B) 2
(C) 1
(D) 0

Level: Beginner Category of MCQ: arrays



Question: 30

(A) 12345
(B) 135
(C) 22222
(D) 14385

Level: Beginner Category of MCQ: arrays



Question: 31

(A) abcde
(B) 6566676869
(C) Compilation Error
(D) Some Garbage Value

Level: Beginner Category of MCQ: arrays



Question: 32

(A) 0
(B) Compilation Error
(C) -10
(D) Garbage Value

Level: Beginner Category of MCQ: classesAndobjects



Question: 33

(A) Garbage Value
(B) Code has compilation error
(C) null
(D) 0

Level: Beginner Category of MCQ: variables



Question: 34

(A) Garbage Value
(B) 0
(C) Undefind
(D) Compilation Error

Level: Beginner Category of MCQ: variables



Question: 35

(A) 0
(B) 10
(C) -10
(D) Compilation Error

Level: Beginner Category of MCQ: classesAndobjects



Question: 36

(A) 5
(B) 10
(C) Error: Can't assign a value to final variable a
(D) None of the above

Level: Beginner Category of MCQ: variables



Question: 37

(A) 0
(B) 10
(C) Undefind
(D) Error: Can't modify final variable a

Level: Beginner Category of MCQ: variables



Question: 38

(A) 5
(B) 10
(C) 0
(D) Error: variable a might already have been assigned

Level: Beginner Category of MCQ: variables



Question: 39

(A) 1
(B) 2
(C) Compilation Error
(D) Infinite times

Level: Beginner Category of MCQ: loops



Question: 40

(A) 0
(B) 1
(C) Infinite Times
(D) Error: Unreachable Statement

Level: Beginner Category of MCQ: loops



Question: 41

(A) Infinite times
(B) 0 times
(C) 1 time
(D) error: unreachable statement

Level: Beginner Category of MCQ: loops



Question: 42

(A) Infinite times
(B) 0
(C) 1
(D) error: unreachable statement

Level: Beginner Category of MCQ: loops



Question: 43

(A) 0
(B) 1
(C) Infinite Times
(D) Compilation Error

Level: Beginner Category of MCQ: loops



Question: 44

(A) 00
(B) 0-1
(C) 0-2
(D) -2

Level: Beginner Category of MCQ: methods



Question: 45

(A) 32136
(B) 33126
(C) 12336
(D) 63321

Level: Beginner Category of MCQ: methods



Question: 46

(A) 12
(B) 01
(C) 11
(D) 10

Level: Beginner Category of MCQ: methods



Question: 47

(A) Yes
(B) No

Level: Beginner Category of MCQ: methods



Question: 48

(A) 123
(B) 1234
(C) 12340
(D) Compilation Error

Level: Beginner Category of MCQ: typecasting



Question: 49

(A) 1234.34
(B) 1234
(C) .1234.00
(D) NumberFormatException

Level: Beginner Category of MCQ: typecasting


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