Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

You are here : Home » Java » Java Interview Questions on Arrays

Java Interview Questions on Arrays - 11 Questions


Question: 1

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

[Posted by: Admin | Location: Chicago, USA]



Question: 2

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

[Posted by: Admin | Location: Chicago, USA]



Question: 3

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

[Posted by: Admin | Location: Chicago, USA]



Question: 4

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

[Posted by: Admin | Location: Chicago, USA]



Question: 5

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

[Posted by: Admin | Location: Chicago, USA]



Question: 6

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

[Posted by: Admin | Location: Chicago, USA]



Question: 7

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

[Posted by: Admin | Location: Chicago, USA]



Question: 8

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

[Posted by: Asish | Location: Des Moines USA]



Question: 9

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

[Posted by: Admin | Location: Chicago, USA]



Question: 10

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

[Posted by: Admin | Location: Chicago, USA]



Question: 11

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

[Posted by: Admin | Location: 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