CppBuzz.com
  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux Forum

You are here : Home » Java » Java Multiple Choice Questions for Experienced

Java Multiple Choice Questions for Experienced - 67


Question: 1

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

DiscussOnForum
Practitioner operators[Posted by: Admin | Chicago, USA]



Question: 2

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

DiscussOnForum
Practitioner other[Posted by: Admin | Chicago, USA]



Question: 3

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

DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 4

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

DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 5

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

DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 6

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

DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 7

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

DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 8

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

DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 9

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

DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 10

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

DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 11

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

DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 12

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

DiscussOnForum
Practitioner variables[Posted by: Admin | Chicago, USA]



Question: 13

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

DiscussOnForum
Practitioner variables[Posted by: Admin | Chicago, USA]



Question: 14

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

DiscussOnForum
Practitioner variables[Posted by: Admin | Chicago, USA]



Question: 15

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

DiscussOnForum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 16

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 17

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 18

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

DiscussOnForum
Practitioner typecasting[Posted by: Admin | Chicago, USA]



Question: 19

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

DiscussOnForum
Practitioner typecasting[Posted by: Admin | Chicago, USA]



Question: 20

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

DiscussOnForum
Practitioner typecasting[Posted by: Admin | Chicago, USA]



Question: 21

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

DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 22

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

DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 23

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

DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 24

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

DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 25

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

DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 26

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

DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 27

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

DiscussOnForum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 28

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

DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 29

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

DiscussOnForum
Practitioner arrays[Posted by: Asish | Des Moines USA]



Question: 30

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 31

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 32

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 33

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 34

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

DiscussOnForum
Practitioner inheritance[Posted by: Admin | Chicago, USA]



Question: 35

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

DiscussOnForum
Practitioner other[Posted by: Admin | Chicago, USA]



Question: 36

(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

DiscussOnForum
Practitioner modifiers[Posted by: Admin | Chicago, USA]



Question: 37

(A) Yes
(B) No

DiscussOnForum
Practitioner classesAndobjects[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 38

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 39

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 40

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 41

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

DiscussOnForum
Practitioner datatype[Posted by: Admin | Chicago, USA]



Question: 42

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

DiscussOnForum
Practitioner typecasting[Posted by: Admin | Chicago, USA]



Question: 43

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

DiscussOnForum
Practitioner exceptions[Posted by: Admin | Chicago, USA]



Question: 44

(A) -100null
(B) -100
(C) null
(D) Compilation Error - unreachable statement at line 8

DiscussOnForum
Practitioner exceptions[Posted by: Admin | Chicago, USA]



Question: 45

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

DiscussOnForum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 46

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 47

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

DiscussOnForum
Practitioner methods[Posted by: Admin | Chicago, USA]



Question: 48

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

DiscussOnForum
Practitioner arrays[Posted by: Admin | Chicago, USA]



Question: 49

(A) Yes
(B) No

DiscussOnForum
Practitioner abstractclass[Posted by: Admin | Chicago, USA]



Question: 50

(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

DiscussOnForum
Practitioner filehandling[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 51

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 52

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 53

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 54

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 55

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 56

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

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 57

(A) True
(B) False

DiscussOnForum
Practitioner collection[Posted by: Admin | Chicago, USA]



Question: 58

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

DiscussOnForum
Practitioner singleton[Posted by: Admin | Chicago, USA]



Question: 59

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

DiscussOnForum
Practitioner overriding[Posted by: Admin | Chicago, USA]



Question: 60

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

DiscussOnForum
Practitioner polymorphism[Posted by: Admin | Chicago, USA]



Question: 61

(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{}

DiscussOnForum
Practitioner polymorphism[Posted by: Admin | Chicago, USA]



Question: 62

(A) True
(B) False

DiscussOnForum
Practitioner packages[Posted by: Admin | Chicago, USA]



Question: 63

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

DiscussOnForum
Practitioner interfaces[Posted by: Admin | Chicago, USA]



Question: 64

(A) Yes
(B) No

DiscussOnForum
Practitioner interfaces[Posted by: Admin | Chicago, USA]



Question: 65

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

DiscussOnForum
Practitioner interfaces[Posted by: Admin | Chicago, USA]



Question: 66

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

DiscussOnForum
Practitioner interfaces[Posted by: Admin | Chicago, USA]



Question: 67

(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

DiscussOnForum
Practitioner other[Posted by: Admin | Chicago, USA]


[Contribute to this Website]

Java Objective Questions By Different 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 | Serialization | Multithreading | Networking | Sending Email | Applet Basics | Other