Does java support multi dimensional arrays ?

Answer Posted / santosh anand

The Java programming language does not really support multi-dimensional arrays. It does, however, support arrays of arrays. In Java, a two-dimensional array x is really an array of one-dimensional arrays:

int[][] x = new int[3][5];
The expression x[i] selects the one-dimensional array;
the expression x[i][j] selects the element from that array.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does a for loop work java?

776


Can private method static?

646


What is fundamental datatype?

730


What is exception propagation?

827


what is function overloading in java?

952


What is singletonlist in java?

710


What is a lightweight component?

791


What is difference between == and === in js?

790


What are the different ways of creating thread?

783


What does || mean in code?

792


How many types of equations are there?

750


What is string english?

760


What is meant by 'bit masking' in java?

866


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1010


How do you use compareto in java?

741