Your question already says the correct answer ^^ but for completeness.

A Jagged or also called Ragged array is a n-dimensional array that need not the be reactangular means:

int[][] array = {{3, 4, 5}, {77, 50}};

For more examples you could look here and here!

Answer from Gerret on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ java โ€บ jagged-array-in-java
Jagged Array in Java - GeeksforGeeks
November 13, 2025 - In Java, a Jagged array is a multidimensional array where each row can have a different number of columns. When we work with a jagged array, one thing to keep in mind is that the inner array can be of different lengths.
๐ŸŒ
Baeldung
baeldung.com โ€บ home โ€บ java โ€บ java array โ€บ jagged arrays in java
Jagged Arrays in Java | Baeldung
July 30, 2025 - In Java, a jagged array is a type of multidimensional array where each row can contain a different number of elements.

Your question already says the correct answer ^^ but for completeness.

A Jagged or also called Ragged array is a n-dimensional array that need not the be reactangular means:

int[][] array = {{3, 4, 5}, {77, 50}};

For more examples you could look here and here!

Answer from Gerret on Stack Overflow
๐ŸŒ
CodeGym
codegym.cc โ€บ java blog โ€บ random โ€บ jagged array in java
Jagged Array in Java
April 9, 2025 - Okay, real talk: a jagged array in Java is an array where every slot holds another array, and those inner arrays don't have to match sizes. It's like a regular 2D array's wild cousin none of that "every row's gotta be the same" nonsense
๐ŸŒ
Wikipedia
en.wikipedia.org โ€บ wiki โ€บ Jagged_array
Jagged array - Wikipedia
March 5, 2026 - Jagged array can be implemented with Iliffe vector data structure in languages such as Java, PHP, Python (multidimensional lists), Ruby, C#.NET, Visual Basic.NET, Perl, JavaScript, Objective-C, Swift, and Atlas Autocode.
๐ŸŒ
DZone
dzone.com โ€บ data engineering โ€บ data โ€บ what is a jagged array in java with examples?
What Is a Jagged Array in Java With Examples?
January 22, 2024 - Sign in to see who liked this post! ... Join the DZone community and get the full member experience. Join For Free ยท A jagged array, also known as an array of arrays, is a data structure in which an array is used to store other arrays.
๐ŸŒ
Medium
medium.com โ€บ @hasibulhimu49 โ€บ understanding-jagged-arrays-in-java-for-viva-exams-725207e8301a
Understanding Jagged Arrays in Java (For Viva Exams) | by Mohammad Hasibul Hasan | Medium
February 8, 2025 - Answer: A jagged array is an array of arrays where each row can have a different number of columns. This is different from a 2D array where all rows have the same number of columns.
Find elsewhere
๐ŸŒ
Unstop
unstop.com โ€บ home โ€บ blog โ€บ jagged array in java | create, initialize & more (+examples)
Jagged Array In Java | Create, Initialize & More (+Examples)
December 30, 2024 - A jagged array in Java is an array of arrays with varying row sizes, making it non-rectangular. Each row can have a different number of elements.
๐ŸŒ
Coddy.Tech
coddy.tech โ€บ learn โ€บ java โ€บ jagged arrays
Jagged Arrays โ€“ Java | Coddy
March 8, 2026 - Notice that when you first declare the array, you only specify the number of rows. Then, you initialize each row separately, specifying the number of columns for that row. ... Create a method named createJaggedArray that takes an integer n as input returns a jagged array of integers.
๐ŸŒ
Medium
medium.com โ€บ @bhushanther123 โ€บ what-is-jagged-array-in-java-3c65578c79c7
What is Jagged Array in java ? - Bhushan Ther - Medium
August 26, 2022 - They are the arrays containing arrays of different length. import java.util.Arrays; public class Test { public static void main(String args[]) { int[][] jaggedArray = new int[3][]; jaggedArray[0] = new int[]{0,1,2,3}; jaggedArray[1] = new ...
๐ŸŒ
Brainly
brainly.in โ€บ computer science โ€บ secondary school
What is jagged array in java - Brainly.in
May 1, 2023 - In Java, a jagged array is an array of arrays where each sub-array can have a different length.
๐ŸŒ
EduRev
edurev.in โ€บ software development exam โ€บ software development notes โ€บ basics of java โ€บ jagged array in java
Jagged Array in Java - Basics of Java - Software Development
May 20, 2023 - Jagged arrays, also known as ragged arrays, are a type of multidimensional array in Java that have different lengths for each row. Unlike regular rectangular arrays, where each row has the same number of columns, jagged arrays offer flexibility ...
๐ŸŒ
GUVI
guvi.in โ€บ hub โ€บ java-programs-tutorial โ€บ create-a-jagged-array
Java Program To Create a Jagged Array that Contains Two Arrays
Start initializing the array elements. Use two for loops for the same. Use the first for loop to iterate through the rows. Use the second for loop to iterate through the columns. Now, initialize the elements by incrementing the count element. Now, display the values of the 2D jagged array using two for loops.
๐ŸŒ
Bytefold
ankitkatiyar91.github.io โ€บ bytefold-site โ€บ jagged-array-in-java
Jagged Array in Java | Bytefold
July 12, 2012 - Java support Jagged Arrays. You can have a different length for each column do not need to have same no of the column for all rows. ... public class JaggedArray { public static void main(String ar[]) { int[][] a=new int[2][]; a[0]=new int[2]; a[1]=new int[4]; a[0][0]=1; a[0][1]=12; a[1][0]=10; ...
๐ŸŒ
PREP INSTA
prepinsta.com โ€บ home โ€บ dsa in java โ€บ introduction to 2d arrays in java
2D Arrays in Java | Data Structures | PrepInsta
August 8, 2025 - 3. How to create 2d array with different row sizes ? ... Java supports jagged arrays, where each row can have a different number of columns.
๐ŸŒ
RCET
rcet.org.in โ€บ uploads โ€บ academics โ€บ rohini_42111550221.pdf pdf
ARRAYS
Each element in an array can be accessed using for loop. ... Program to access array elements. ... Array- List). ... Program to calculate sum of array elements. ... Jagged array is an array of arrays with different row size i.e.
๐ŸŒ
TutorialRide
tutorialride.com โ€บ java-array-interview โ€บ top-java-array-interview-questions-answers-for-placement.htm
Top Java Array Interview Questions & Answers for Placement
August 25, 2022 - So, memory overhead in the LinkedList is more as compared to the ArrayList where no such links are required. A Jagged array is an array of arrays or a multi-dimensional array where each inner array can be of different size, which means there ...