Java Arrays Multiple Choice Questions answers


Hello Friends in this article we will discuss about Java Arrays Multiple Choice questions | Java Arrays Objective type Questions and Answers PDF | java array mcq questions and answers | mcq on arrays in java

1.What happens if we try to access elements outside the array size In Java?

  1. NullPointerException
  2. ArrayIndexOutOfBoundsException
  3. IndexOutOfBoundsException
  4. ClassCastException

Ans : 2

2.What are arrays of arrays with each element of the array holding the reference of other arrays?

  1. No Dimensional
  2. Two Dimensional
  3. Multidimensional 
  4. None of these

Ans : 3

Explain : Multidimensional arrays are arrays of arrays with each element of the array holding the reference of other arrays

3.Which array are also known as Jagged Arrays?

  1. No Dimensional
  2. Two Dimensional
  3. Multidimensional 
  4. None of these

Ans : 3

Explain : Multidimensional arrays are also known as Jagged Arrays.

4.Can we also pass arrays to methods in Java?

  1. Yes
  2. No

Ans : 1

Explain : we can also pass arrays to methods as Jagged Arrays in Java.


5.In Which type of array can be of different sizes?

  1. No Dimensional
  2. Two Dimensional
  3. Multidimensional 
  4. Jagged Array

Ans : 4

Explain : In Jagged type of array can be of different sizes.

6.Default Array value of int type is?

  1. No
  2. Null
  3. 0
  4. None of these

Ans : 3

Explain : Default array value of int type is 0.

7.Default Array value of String type is?

  1. No
  2. Null
  3. 0
  4. None of these

Ans : 2

Explain : Default array value of int type is Null.

You can also read :

Array Multiple Choice Questions


Leave a Reply

Your email address will not be published. Required fields are marked *