LearnFrenzy
Sign in Take a free test

Arrays in Java · Java Arrays MCQ · Question 13

What is a jagged array? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 13 Back to Exercise

What is a jagged array in Java?

  • A An unsorted array
  • B A 2D array whose rows have different lengths Correct
  • C An array with gaps
  • D An array of chars
Correct Answer: Option B

Possible because a 2D array is an array of separate row arrays.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links