Does java support multi dimensional arrays ?

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


Please Help Members By Posting Answers For Below Questions

Is there any tag in htm to upload and download files?

695


What is difference between char array and string?

629


What is the difference between procedural and object-oriented programs?

613


What are examples of modifiers?

595


Can a method inside a interface be declared as final?

602






What does business logic mean?

619


What is a method in coding?

666


What is the final class modifier?

645


What is java in detail?

687


java program with complete 4 oops concepts implemented example

2809


What is break and continue statement?

696


What is an array length?

588


What do you know about the garbage collector?

694


What is a null check?

629


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

739