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

Explain different types of wrapper classes in java?

748


How do you use wildcards?

673


What is jit compiler in java?

739


How to do a true java ping from windows?

752


Which is the best approach for creating thread ?

884






Is ++ operator thread-safe in java?

809


What is style and indentation?

696


Can we have two methods in a class with the same name?

740


How do you declare a destructor in java?

657


How do you sort in ascending order in java?

636


What is a blocking method in Java?

762


When arithmeticexception is thrown?

741


Can you sort a list in java?

686


What is function and method in java?

671


What is return used for in java?

659