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

How does a for loop work java?

781


Is a string literal?

728


Explain about automatic type conversion in java?

828


How do you delete a list in java?

731


Is java a super set of javascript?

836


Can we override the private methods?

740


What are the two ways to create a thread?

750


What are the uses of java?

787


How do you find the absolute value?

789


What is oop in java?

720


How a variable is stored in memory?

726


Why does it take so much time to access an applet having swing components the first time?

1670


What are the differences between string and stringbuffer?

846


How are the elements of a gridbaglayout organized?

792


What is a local class in java?

798