Java supports multidimensional arrays.

a)True
b)False
Ans:a.

An array of arrays can be created.

a)True
b)False
Ans: a.

What is a string?

Ans: A combination of characters is called as string.

Strings are instances of the class String.

a)True
b)False
Ans:a.

a string literal is used in the program, Java automatically creates instances of the string class.

a)True
b)False
Ans: a.

Which operator is to create and concatenate string?

Ans: Addition operator(+).

Which of the following declare an array of string objects?

a)String[ ] s; b)String [ ]s: c)String[ s]: d)String s[ ]: Ans :a, b and d

What is the value of a[3] as the result of the following array declaration?

a)1 b)2 c)3 d)4 Ans :d

Which of the following are primitive types?

a)byte b)String c)integer d)Float Ans :a

Google