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

Home » Java » Java Interview Questions on Networking

Java Interview Questions on Networking - 0 Questions


Question: 1

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




Forum
Level: Expert Category: datatype
[Posted by: Admin | Chicago, USA]



Question: 2

(A) 11
(B) 12
(C) 13
(D) Compilation Error




Forum
Level: Practitioner Category: operators
[Posted by: Admin | Chicago, USA]



Question: 3

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




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



Question: 4

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




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



Question: 5

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




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



Question: 6

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




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



Question: 7

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




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



Question: 8

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




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



Question: 9

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




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



Question: 10

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




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



Question: 11

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




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



Question: 12

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




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



Question: 13

(A) Left Shift Operator
(B) Right Shift Operator
(C) Zero Fill Right Shift
(D) Zero Fill Left Shift




Forum
Level: Expert Category: operators
[Posted by: Admin | Chicago, USA]



Question: 14

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




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



Question: 15

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




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



Question: 16

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




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



Question: 17

(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
Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]



Question: 18

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




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



Question: 19

(A) True
(B) False




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



Question: 20

(A) True
(B) False




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



Question: 21

(A) default
(B) public
(C) protected
(D) All of these




Forum
Level: Practitioner Category: other
[Posted by: Admin | Chicago, USA]



Question: 22

(A) True
(B) False




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



Question: 23

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




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



Question: 24

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




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



Question: 25

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




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



Question: 26

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




Forum
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 27

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




Forum
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 28

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




Forum
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 29

(A) 0
(B) 1
(C) 2
(D) Infinite times




Forum
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 30

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




Forum
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 31

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




Forum
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 32

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




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



Question: 33

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




Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 34

(A) 5
(B) 510
(C) 5100
(D) Compilation Error




Forum
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 35

(A) 5
(B) 510
(C) 5100
(D) 100




Forum
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 36

(A) 5
(B) 10
(C) 100
(D) 0




Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 37

(A) 10
(B) 510
(C) 5100
(D) 100




Forum
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 38

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




Forum
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 39

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




Forum
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 40

(A) Compilation Error
(B) Length is 5-10
(C) Length not in 5-10
(D) nothing is printed




Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 41

(A) "cpp''buzz"
(B) "cpp''buzz"
(C) cpp''buzz
(D) Compilation Error




Forum
Level: Expert Category: other
[Posted by: Admin | Chicago, USA]



Question: 42

(A) 10"10"
(B) Compilation Error
(C) 20
(D) 1010




Forum
Level: Practitioner Category: variables
[Posted by: Admin | Chicago, USA]



Question: 43

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




Forum
Level: Practitioner Category: variables
[Posted by: Admin | Chicago, USA]



Question: 44

(A) 10+10
(B) 1010
(C) Compilation Error
(D) Undefined




Forum
Level: Practitioner Category: variables
[Posted by: Admin | Chicago, USA]



Question: 45

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




Forum
Level: Expert Category: variables
[Posted by: Admin | Chicago, USA]



Question: 46

(A) 30
(B) 1020
(C) 10+10+10
(D) 1010+10




Forum
Level: Expert Category: variables
[Posted by: Admin | Chicago, USA]



Question: 47

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




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



Question: 48

(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
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]



Question: 49

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




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



Question: 50

(A) True
(B) False




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



Question: 51

(A) True
(B) False




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



Question: 52

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




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



Question: 53

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




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



Question: 54

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




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



Question: 55

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




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



Question: 56

(A) a b c d e
(B) abcde
(C) 97 98 99 100 101
(D) 65 66 67 68 69




Forum
Level: Expert Category: arrays
[Posted by: Admin | Chicago, USA]



Question: 57

(A) a b c d e
(B) 96 97 98 99 101
(C) 65 66 67 68 69
(D) None of the above




Forum
Level: Expert Category: arrays
[Posted by: Admin | Chicago, USA]



Question: 58

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




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



Question: 59

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




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



Question: 60

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




Forum
Level: Practitioner Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 61

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




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



Question: 62

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




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



Question: 63

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




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



Question: 64

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




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



Question: 65

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




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



Question: 66

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




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



Question: 67

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




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



Question: 68

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




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



Question: 69

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




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



Question: 70

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




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



Question: 71

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




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



Question: 72

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




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



Question: 73

(A) -2
(B) 0-1
(C) 0-2
(D) error: non-static method can't be called




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 74

(A) Compilation Error
(B) 3
(C) 5
(D) 6




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 75

(A) 63321
(B) 36
(C) 33
(D) 12336




Forum
Level: Expert Category: methods
[Posted by: Admin | Chicago, USA]



Question: 76

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




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



Question: 77

(A) 123456789
(B) 12345678
(C) 122
(D) None of the above




Forum
Level: Expert Category: methods
[Posted by: Admin | Chicago, USA]



Question: 78

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




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



Question: 79

(A) Yes
(B) No




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



Question: 80

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




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



Question: 81

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




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



Question: 82

(A) 1234.00
(B) 1234.34
(C) 1234
(D) Exception




Forum
Level: Expert Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 83

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




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



Question: 84

(A) 10.0
(B) 10
(C) error: loss precision
(D) Exception




Forum
Level: Expert Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 85

(A) 10.0f
(B) 10.0
(C) 10
(D) error: no suitable method found for toString(float)




Forum
Level: Practitioner Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 86

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




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



Question: 87

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




Forum
Level: Practitioner Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 88

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




Forum
Level: Expert Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 89

(A) 0
(B) 10
(C) 100
(D) Exception




Forum
Level: Practitioner Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 90

(A) 10
(B) 10.00
(C) 10.87
(D) NumberFormatException




Forum
Level: Expert Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 91

(A) 10.87
(B) 10.00
(C) 10
(D) error:possible loss of precision




Forum
Level: Expert Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 92

(A) 10.87
(B) 10.870000
(C) 10.8700
(D) 10.00




Forum
Level: Expert Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 93

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




Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 94

(A) Moon
(B) Sun
(C) SunMoon
(D) error: int can not be converted to boolean




Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 95

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




Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 96

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




Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 97

(A) Compilation Error
(B) Sun
(C) Nothing is printed
(D) error: unreachable statement




Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 98

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




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



Question: 99

(A) Sun
(B) SunMoon
(C) Nothing is printed
(D) Compilation Error




Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 100

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




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



Question: 101

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




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



Question: 102

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




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



Question: 103

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




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



Question: 104

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




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



Question: 105

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




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



Question: 106

(A) error: sum() is private default
(B) hi
(C) Exception
(D) Nothing is printed




Forum
Level: Practitioner Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 107

(A) Code runs but nothing is printed
(B) Code runs in infinite loop
(C) error: Main method not found
(D) Exception




Forum
Level: Expert Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 108

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




Forum
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]



Question: 109

(A) ASISH
(B) asish
(C) HSISA
(D) HSIS




Forum
Level: Practitioner Category: arrays
[Posted by: Asish | Des Moines USA]



Question: 110

(A) Compilation Error
(B) Exception
(C) - -
(D) --




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 111

(A) -null-
(B) - -
(C) --
(D) java.lang.NullPointerException




Forum
Level: Expert Category: methods
[Posted by: Admin | Chicago, USA]



Question: 112

(A) Compilation Error
(B) Exception
(C) --
(D) - -




Forum
Level: Expert Category: methods
[Posted by: Admin | Chicago, USA]



Question: 113

(A) 3
(B) 5
(C) 18
(D) 16




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 114

(A) 77
(B) 78
(C) 79
(D) 710




Forum
Level: Expert Category: methods
[Posted by: Admin | Chicago, USA]



Question: 115

(A) 7
(B) 8
(C) 9
(D) 10




Forum
Level: Expert Category: methods
[Posted by: Admin | Chicago, USA]



Question: 116

(A) 7
(B) 8
(C) 9
(D) 10




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 117

(A) 555
(B) 544
(C) 554
(D) 543




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 118

(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
Level: Beginner Category: inheritance
[Posted by: Admin | Chicago, USA]



Question: 119

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




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



Question: 120

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




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



Question: 121

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




Forum
Level: Practitioner Category: inheritance
[Posted by: Admin | Chicago, USA]



Question: 122

(A) Automatic Memory Management
(B) Speed-up the Execution of Java code
(C) to handle runtime exceptions
(D) All of these




Forum
Level: Practitioner Category: other
[Posted by: Admin | Chicago, USA]



Question: 123

(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
Level: Beginner Category: modifiers
[Posted by: Admin | Chicago, USA]



Question: 124

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




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



Question: 125

(A) Private members can be accessed within a same package
(B) Private members can be accessed within class only
(C) Private members can be accessed within sub classes of same package
(D) All of the above




Forum
Level: Practitioner Category: modifiers
[Posted by: Admin | Chicago, USA]



Question: 126

(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
Level: Beginner Category: modifiers
[Posted by: Admin | Chicago, USA]



Question: 127

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




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



Question: 128

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




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



Question: 129

(A) Cap Cog
(B) Cap Cap
(C) Cog Cog
(D) Cap Cog Cap Cog




Forum
Level: Expert Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 130

(A) Cap Cog
(B) Cap Cap
(C) Cog Cog
(D) Cap Cog Cap Cog




Forum
Level: Expert Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 131

(A) Yes
(B) No




Forum
Level: Practitioner Category: classesAndobjects
[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 132

(A) 10203040
(B) 10203040Hello
(C) Hello
(D) None of these




Forum
Level: Expert Category: classesAndobjects
[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 133

(A) 10203040
(B) 10203040Hello
(C) Hello
(D) Nothing is printed




Forum
Level: Expert Category: classesAndobjects
[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 134

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




Forum
Level: Expert Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 135

(A) null
(B) Nothing is printed
(C) Compilation Error
(D) ArrayIndexOutOfBoundsException




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 136

(A) Ash
(B) Ashxyz
(C) Nothing is printed
(D) AshxyzabcImn




Forum
Level: Expert Category: conditional
[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 137

(A) AT&T Lab65
(B) AT&T Lab 65
(C) AT&T Lab
(D) Compilation Error




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 138

(A) 6565
(B) 65
(C) "65"
(D) None of the above




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 139

(A) 65 & Infinite loop
(B) 65
(C) Nothing is printed
(D) Compilation Error




Forum
Level: Expert Category: methods
[Posted by: Admin | Chicago, USA]



Question: 140

(A) 'a'
(B) a
(C) 65
(D) 97




Forum
Level: Practitioner Category: datatype
[Posted by: Admin | Chicago, USA]



Question: 141

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




Forum
Level: Practitioner Category: typecasting
[Posted by: Admin | Chicago, USA]



Question: 142

(A) Yes
(B) No




Forum
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




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



Question: 144

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




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



Question: 145

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




Forum
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




Forum
Level: Practitioner Category: exceptions
[Posted by: Admin | Chicago, USA]



Question: 147

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




Forum
Level: Practitioner Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 148

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




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 149

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




Forum
Level: Expert Category: arrays
[Posted by: Admin | Chicago, USA]



Question: 150

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




Forum
Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]



Question: 151

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




Forum
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




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



Question: 153

(A) Yes
(B) No




Forum
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




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



Question: 155

(A) Yes
(B) No




Forum
Level: Expert Category: abstractclass
[Posted by: Admin | Chicago, USA]



Question: 156

(A) Yes
(B) No




Forum
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




Forum
Level: Practitioner Category: filehandling
[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 158

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




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



Question: 159

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




Forum
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]



Question: 160

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




Forum
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]



Question: 161

(A) Nothing is printed
(B) 5
(C) 0
(D) true




Forum
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]



Question: 162

(A) -1
(B) 0
(C) IndexOutOfBoundsException
(D) None of the above




Forum
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]



Question: 163

(A) true
(B) -2
(C) Compilation Error
(D) 0




Forum
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]



Question: 164

(A) 331
(B) 3321
(C) 310
(D) 321




Forum
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]



Question: 165

(A) True
(B) False




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



Question: 166

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




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



Question: 167

(A) True
(B) False




Forum
Level: Practitioner Category: collection
[Posted by: Admin | Chicago, USA]



Question: 168

(A) O(1)
(B) O(n)
(C) O(log(n))
(D) None of these




Forum
Level: Expert Category: collection
[Posted by: Admin | Chicago, USA]



Question: 169

(A) O(n)
(B) O(1)
(C) O(log(n))
(D) None of these




Forum
Level: Expert Category: collection
[Posted by: Admin | Chicago, USA]



Question: 170

(A) 1
(B) Depends on the calling program
(C) Depends on class creating object of Singleton class
(D) 256




Forum
Level: Practitioner Category: singleton
[Posted by: Admin | Chicago, USA]



Question: 171

(A) True
(B) False




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



Question: 172

(A) True
(B) False




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



Question: 173

(A) True
(B) False




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



Question: 174

(A) Yes
(B) No




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



Question: 175

(A) cppbuzz-11
(B) cppbuzz-11.0
(C) hello-11
(D) hello-11.0




Forum
Level: Practitioner Category: overriding
[Posted by: Admin | Chicago, USA]



Question: 176

(A) HashTable
(B) EnumSet
(C) Vector
(D) ArrayList




Forum
Level: Expert Category: collection
[Posted by: Admin | Chicago, USA]



Question: 177

(A) Autoboxing
(B) Morphing
(C) Unboxing
(D) Typecasting




Forum
Level: Expert Category: other
[Posted by: Admin | Chicago, USA]



Question: 178

(A) class-A class-A
(B) class-B class-B
(C) class-B class-A
(D) class-A class-B




Forum
Level: Practitioner Category: polymorphism
[Posted by: Admin | Chicago, USA]



Question: 179

(A) void methodA(){} int methodA(){}
(B) void methodA(){} void methodA(int a){}
(C) void methodA(){} int methodB(int a){}
(D) int methodA(){} int methodAA(i{}




Forum
Level: Practitioner Category: polymorphism
[Posted by: Admin | Chicago, USA]



Question: 180

(A) True
(B) False




Forum
Level: Practitioner Category: packages
[Posted by: Admin | Chicago, USA]



Question: 181

(A) Singletons
(B) Java Beans
(C) Transactions
(D) None of the above




Forum
Level: Expert Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 182

(A) Exception
(B) Throwable
(C) JavaBase
(D) Error




Forum
Level: Expert Category: exceptions
[Posted by: Admin | Chicago, USA]



Question: 183

(A) Thread
(B) Object
(C) Runnable
(D) Class




Forum
Level: Practitioner Category: interfaces
[Posted by: Admin | Chicago, USA]



Question: 184

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




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



Question: 185

(A) NumberFormatException
(B) IllegalArgumentException
(C) RuntimeException
(D) ParseException




Forum
Level: Expert Category: exceptions
[Posted by: Admin | Chicago, USA]



Question: 186

(A)
(B)




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



Question: 187

(A) Yes
(B) No




Forum
Level: Practitioner Category: interfaces
[Posted by: Admin | Chicago, USA]



Question: 188

(A) Compilation Error
(B) Hello CppBuzz
(C) 13
(D) Hello CppBuzz13




Forum
Level: Practitioner Category: interfaces
[Posted by: Admin | Chicago, USA]



Question: 189

(A) It is not allowed. Compilation Error
(B) It is allowed. CppBuzz
(C) It is allowed. Compilation Error
(D) None of the above




Forum
Level: Practitioner Category: interfaces
[Posted by: Admin | Chicago, USA]



Question: 190

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




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



Question: 191

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




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



Question: 192

(A) The main thread waits for other threads to finish
(B) The main thread is finished first then other threads
(C) Other threads will sleep until main is complete
(D) All of these




Forum
Level: Practitioner Category: other
[Posted by: Admin | Chicago, USA]



Question: 193

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




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



Question: 194

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




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



Question: 195

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




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



Question: 196

(A) Anonymous inner class
(B) Interface
(C) Inner class
(D) All of the mentioned




Forum
Level: Expert Category: classesAndobjects
[Posted by: Arvind | Navi Mumbai India]



Question: 197

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




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



Question: 198

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




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



Question: 199

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




Forum
Level: Practionar Category: variables
[Posted by: Admin | Chicago, USA]



Question: 200

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




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



Question: 201

(A) 00
(B) 05
(C) 50
(D) 55




Forum
Level: Practionar Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 202

(A) 100
(B) 1000
(C) 2
(D) 20




Forum
Level: Practionar Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 203

(A) true
(B) false
(C) Compilation Error
(D) None of the above




Forum
Level: Practionar Category: methods
[Posted by: Admin | Chicago, USA]



Question: 204

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




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



Question: 205

(A) 0 cpp 0 buzz 1 cpp 1 buzz
(B) 0 cpp 0 buzz 1 cpp 2 buzz
(C) 0 cpp 0 buzz 1 cpp 1 buzz 2 cpp 2 buzz
(D) 0 cpp 0 buzz 1 cpp 2 cpp 2 buzz




Forum
Level: Practionar Category: arrays
[Posted by: Admin | Chicago, USA]



Question: 206

(A) 0
(B) 10
(C) null
(D) IndexOutOfBoundsException




Forum
Level: Practionar Category: arrays
[Posted by: Admin | Chicago, USA]



Question: 207

(A) Germany
(B) India
(C) Canada
(D) USA




Forum
Level: Practionar Category: conditional
[Posted by: Admin | Chicago, USA]



Question: 208

(A) Reading...
(B) Reading Book
(C) Reading Code
(D) Compilation Error




Forum
Level: Practionar Category: inheritance
[Posted by: Admin | Chicago, USA]



Question: 209

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




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



Question: 210

(A) Private
(B) Protected
(C) Public
(D) Package-Private




Forum
Level: Practionar Category: inheritance
[Posted by: Admin | Chicago, USA]



Question: 211

(A) 5 10
(B) 5 10 CppBuzz1
(C) 5 10 CppBuzz2
(D) Compilation Error




Forum
Level: Expert Category: exceptions
[Posted by: Admin | Chicago, USA]



Question: 212

(A) 100
(B) 1000
(C) 2
(D) 20




Forum
Level: Practionar Category: classesAndobjects
[Posted by: Admin | Chicago, USA]



Question: 213

(A) cougar c f
(B) feline cougar c c
(C) feline cougar c f
(D) Compilation fails




Forum
Level: Practionar Category: inheritance
[Posted by: Admin | Chicago, USA]



Question: 214

(A) alpha beta
(B) beta beta
(C) gamma gamma
(D) Compilation fails




Forum
Level: Practionar Category: inheritance
[Posted by: Admin | Chicago, USA]



Question: 215

(A) 16 mph, lope
(B) 24 mph, lope
(C) 27 mph, lope
(D) Compilation fails




Forum
Level: Practionar Category: interfaces
[Posted by: Admin | Chicago, USA]



Question: 216

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




Forum
Level: Practionar Category: operators
[Posted by: Admin | Chicago, USA]



Question: 217

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




Forum
Level: Practionar Category: operators
[Posted by: Admin | Chicago, USA]



Question: 218

(A) Hello. How are you?Hello. How are you?
(B) Hello. How are you?
(C) Hello. How are you??
(D) Compilation/RuntimeError




Forum
Level: Expert Category: arrays
[Posted by: Admin | Chicago, USA]



Question: 219

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




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



Question: 220

(A)
(B)
(C)
(D)




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



Question: 221

(A)
(B)
(C)
(D)




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



Question: 222

(A)
(B)




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



Question: 223

(A)
(B)




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



Question: 224

(A)
(B)
(D)




Forum
Level: Beginner Category: 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