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

Home » Java » Java Multiple Choice Questions For Beginners

Java Multiple Choice Questions For Beginners - 98


Question: 1

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

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 2

(A) 100
(B) 110
(C) 121
(D) Compilation Error

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 3

(A) 100
(B) 110
(C) 121
(D) 144

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 4

(A) 121
(B) 132
(C) 144
(D) 100

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 5

(A) 121
(B) 144
(C) 132
(D) 100

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 6

(A) 100
(B) 90
(C) 81
(D) 80

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 7

(A) 100
(B) 90
(C) 99
(D) 72

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 8

(A) 138
(B) 264
(C) 41
(D) 25

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 9

(A) -
(B) +
(C) *

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 10

(A) |
(B) ^
(C) ~
(D) <->

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 11

(A) ()
(B) ++
(C) *
(D) >=

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 12

(A) ()
(B) *
(C) +
(D) ++

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 13

(A) >=
(B) <=
(C) !=
(D) +=

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 14

(A) Local variables are declared in methods, constructors, or blocks
(B) Local variables are created when the method, constructor or block is entered
(C) the variable will be destroyed once it exits the method, constructor, or block
(D) We can't create reference variables of Local variables

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 15

(A) Windows
(B) Mac OS
(C) UNIX
(D) All of these

Forum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 16

(A) True
(B) False

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 17

(A) True
(B) False

Forum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 18

(A) True
(B) False

Forum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 19

(A) byte
(B) short
(C) long
(D) class

Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 20

(A) 5
(B) 4
(C) 1
(D) 0

Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 21

(A) 5
(B) 4
(C) 3
(D) 2

Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 22

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

Forum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 23

(A) Compiler
(B) Class Loader
(C) Byte Code Verifier
(D) Java Virtual Machine

Forum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 24

(A) Editing -> Compilation -> Class Loader -> Bytecode Verifier -> Execution
(B) Editing -> Bytecode Verifier -> Compilation -> Class Loader -> Execution
(C) Editing -> Compilation -> Bytecode Verifier -> Class Loader -> Execution
(D) None of the above

Forum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 25

(A) friends
(B) friend
(C) fr
(D) compilation Error

Forum
Beginner loops[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 26

(A) True
(B) False

Forum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 27

(A) True
(B) False

Forum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 28

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

Forum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 29

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

Forum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 30

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

Forum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 31

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

Forum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 32

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

Forum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 33

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

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 34

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

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 35

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

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 36

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

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 37

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

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 38

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

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 39

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

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 40

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

Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 41

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

Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 42

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

Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 43

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

Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 44

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

Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 45

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

Forum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 46

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

Forum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 47

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

Forum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 48

(A) Yes
(B) No

Forum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 49

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

Forum
Beginner typecasting[Posted by: Admin | Chicago, USA]



Question: 50

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

Forum
Beginner typecasting[Posted by: Admin | Chicago, USA]



Question: 51

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

Forum
Beginner typecasting[Posted by: Admin | Chicago, USA]



Question: 52

(A) 10.0f
(B) 10.0
(C) 10
(D) 10.00

Forum
Beginner typecasting[Posted by: Admin | Chicago, USA]



Question: 53

(A) Compilation Error
(B) exception: unreachable code
(C) Sun
(D) SunMoon

Forum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 54

(A) hi
(B) nothing is printed
(C) error: sum() has private access
(D) Exception

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 55

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

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 56

(A) hi
(B) Compilation Error
(C) Exception
(D) None of the above

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 57

(A) hi
(B) Compilation Error
(C) Exception
(D) None of the above

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 58

(A) hi
(B) Compilation Error
(C) Exception
(D) None of the above

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 59

(A) hi
(B) Compilation Error
(C) Exception
(D) None of the above

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 60

(A) Inheritance increases execution of program
(B) Inheritance is useful in code re-usability
(C) Inheritance minimizes programming loop holes
(D) None of the above

Forum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 61

(A) extends is a datatype
(B) extends is a keyword
(C) extends is a class
(D) extend is a package

Forum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 62

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

Forum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 63

(A) It CAN be accessed from ANYWHERE
(B) It CAN ONLY be accessed from ’same package’
(C) It can be accessed from the same file
(D) It can be access from the same project

Forum
Beginner modifiers[Posted by: Admin | Chicago, USA]



Question: 64

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

Forum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 65

(A) It is visible to same project
(B) It is visible to same package
(C) It is visible to same file
(D) All of these

Forum
Beginner modifiers[Posted by: Admin | Chicago, USA]



Question: 66

(A) 1
(B) 2
(C) 3
(D) Max 256

Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 67

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

Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 68

(A) Yes
(B) No

Forum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 69

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

Forum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 70

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

Forum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 71

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

Forum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 72

(A) Yes
(B) No

Forum
Beginner abstractclass[Posted by: Admin | Chicago, USA]



Question: 73

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

Forum
Beginner abstractclass[Posted by: Admin | Chicago, USA]



Question: 74

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

Forum
Beginner collection[Posted by: Admin | Chicago, USA]



Question: 75

(A) True
(B) False

Forum
Beginner collection[Posted by: Admin | Chicago, USA]



Question: 76

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

Forum
Beginner collection[Posted by: Admin | Chicago, USA]



Question: 77

(A) True
(B) False

Forum
Beginner packages[Posted by: Admin | Chicago, USA]



Question: 78

(A) True
(B) False

Forum
Beginner packages[Posted by: Admin | Chicago, USA]



Question: 79

(A) True
(B) False

Forum
Beginner packages[Posted by: Admin | Chicago, USA]



Question: 80

(A) Yes
(B) No

Forum
Beginner overriding[Posted by: Admin | Chicago, USA]



Question: 81

(A) NullPointerException
(B) NumberFormatException
(C) ClassCastException
(D) ParseException

Forum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 82

Forum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 83

(A) abstract is a keyword
(B) abstract is a method
(C) abstract is a class
(D) All of these

Forum
Beginner interfaces[Posted by: Admin | Chicago, USA]



Question: 84

(A) Heap
(B) Stack
(C) Cache
(D) Register

Forum
Beginner referencevar[Posted by: Admin | Chicago, USA]



Question: 85

(A) throws
(B) finally
(C) catch
(D) throw

Forum
Beginner exceptions[Posted by: Arvind | Navi Mumbai India]



Question: 86

(A) finally
(B) catch
(C) finally & catch
(D) none of the mentioned

Forum
Beginner exceptions[Posted by: Arvind | Navi Mumbai India]



Question: 87

(A) java.io
(B) java.util
(C) java.lang
(D) java.net

Forum
Beginner exceptions[Posted by: Arvind | Navi Mumbai India]



Question: 88

(A) 0
(B) garbage value
(C) runtime error
(D) compile time error

Forum
Beginner other[Posted by: Arvind | Navi Mumbai India]



Question: 89

(A) a
(B) b
(C) a and both
(D) Neither a nor b

Forum
Beginner other[Posted by: Arvind | Navi Mumbai India]



Question: 90

(A) 10
(B) 0
(C) Error in Code
(D) Nothing is printed

Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 91

(A) [7,1,5]
(B) [7,5,1]
(C) [7, 1, 5, 1]
(D) None of the above

Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 92

(A) Pen Pencil Box
(B) Pen Pencil
(C) Box
(D) Compilation Error

Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 93

(A) join
(B) sleep
(C) getPriority
(D) isAlive

Forum
Beginner multithreading[Posted by: Admin | Chicago, USA]



Question: 94

Forum
Beginner multithreading[Posted by: Admin | Chicago, USA]



Question: 95

Forum
Beginner multithreading[Posted by: Admin | Chicago, USA]



Question: 96

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 97

Forum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 98

Forum
Beginner other[Posted by: Admin | Chicago, USA]


[Contribute to this Website]

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