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 are the limitations of procedural programming approach?

540


What is a short in java?

514


How is a structure different from array ?

592


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

602


What is off heap memory?

562






State the main difference between c++ and java?

598


What is fail fast in java?

580


Can you instantiate the math class in Java?

627


What is collection class in java?

553


What is the purpose class.forname method?

570


Convert Binary tree to linked list.

603


What is a void method?

531


Does java isempty check for null?

586


What is composition in java?

736


Describe method overriding

599