CppBuzz.com
  
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) 10
(C) 12
(D) 13

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



Question: 2

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

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



Question: 3

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

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



Question: 4

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

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



Question: 5

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

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



Question: 6

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

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



Question: 7

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

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



Question: 8

(A) 138
(B) 138
(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 declared in methods, constructors, or blocks
(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) Windows
(C) UNIX
(D) All of these

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



Question: 16

(A) True
(B) True

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



Question: 17

(A) True
(B) True

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



Question: 18

(A) True
(B) True

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



Question: 19

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

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



Question: 20

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

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



Question: 21

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

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



Question: 22

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

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



Question: 23

(A) Compiler
(B) Compiler
(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 -> Compilation -> Class Loader -> Bytecode Verifier -> 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) friends
(C) fr
(D) compilation Error

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



Question: 26

(A) True
(B) True

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



Question: 27

(A) True
(B) True

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



Question: 28

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

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



Question: 29

(A) 12345
(B) 12345
(C) 1
(D) Infinite times

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



Question: 30

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

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



Question: 31

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

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



Question: 32

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

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



Question: 33

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

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



Question: 34

(A) Garbage Value
(B) Garbage Value
(C) null
(D) 0

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



Question: 35

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

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



Question: 36

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

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



Question: 37

(A) 5
(B) 5
(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) 0
(C) Undefind
(D) Error: Can't modify final variable a

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



Question: 39

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

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



Question: 40

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

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



Question: 41

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

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



Question: 42

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

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



Question: 43

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

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



Question: 44

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

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



Question: 45

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

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



Question: 46

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

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



Question: 47

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

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



Question: 48

(A) Yes
(B) Yes

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



Question: 49

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

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



Question: 50

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

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



Question: 51

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

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



Question: 52

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

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



Question: 53

(A) Compilation Error
(B) Compilation Error
(C) Sun
(D) SunMoon

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



Question: 54

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

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



Question: 55

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

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



Question: 56

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

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



Question: 57

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

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



Question: 58

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

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



Question: 59

(A) hi
(B) hi
(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 increases execution of program
(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 datatype
(C) extends is a class
(D) extend is a package

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



Question: 62

(A) 0
(B) 0
(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 be accessed from ANYWHERE
(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) 1
(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 project
(C) It is visible to same file
(D) All of these

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



Question: 66

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

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



Question: 67

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

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



Question: 68

(A) Yes
(B) Yes

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



Question: 69

(A) -100
(B) -100
(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) Yes

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



Question: 71

(A) Arrays are passed by Value
(B) Arrays are passed by Value
(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) Yes

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



Question: 73

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

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



Question: 74

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

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



Question: 75

(A) True
(B) True

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



Question: 76

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

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



Question: 77

(A) True
(B) True

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



Question: 78

(A) True
(B) True

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



Question: 79

(A) True
(B) True

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



Question: 80

(A) Yes
(B) Yes

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



Question: 81

(A) NullPointerException
(B) NullPointerException
(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 keyword
(C) abstract is a class
(D) All of these

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



Question: 84

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

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



Question: 85

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

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



Question: 86

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

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



Question: 87

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

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



Question: 88

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

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



Question: 89

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

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



Question: 90

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

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



Question: 91

(A) [7,1,5]
(B) [7,1,5]
(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 Box
(C) Box
(D) Compilation Error

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



Question: 93

(A) join
(B) join
(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