Answer Posted / chandrarekha
Yes java supports multi dimensional arrays..care should be
taken while creating an array, as the array elements are
considered to be objects...we use new operator
int arr[][]=new int[3][]
arr[0]=new int[2];
arr[1]=new int[3];
arr[2]=new int[4];
the second dimension need not always have the same number
of elements.
Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What is the difference between an inner class and a sub-class?
Give me an example of array and linked list? Where they can be used?
Can set contain duplicates?
How we can declare a static variable?
Are maps ordered java?
How do you delete a list in java?
What is package protected in java?
How do you ensure that n threads can access n resources without deadlock?
How to retrieve data from database in java using arraylist?
What do you understand by copy constructor in java?
How many types of operators are there?
what is the purpose of "virtual"?
What do you mean by an interface in java?
What does those terms actually mean included in the j.d.k i.6?
How do you create immutable object in java?