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

What is array and arraylist in java?

806


What is array initialization in java?

720


Explain the use of javap tool.

890


how to convert Java project into Maven ?

809


What is the use of volatile in java?

820


How to handle a web browser resize operation?

773


What is the purpose of format function?

869


What is member in java?

708


How do you use compareto in java?

758


Describe how to implement singleton design pattern in struts.

779


What is predicate in java?

821


Can a variable be local and static at the same time?

781


Why we go for collections in java?

770


Explain different states of a thread in java?

821


What are the advantages of user defined functions?

766