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
What is a key in java?
Is void a wrapper class?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
How do you define a variable?
What is arraylist e in java?
What is the difference between static and non-static variables in java programming?
Can an interface have a class?
What is the independent variable in an experiment?
What are the advantages of passing this into a method instead of the current class object itself?
What are local variables?
What are some characteristics of interference class?
design an lru cache in java?
When will we use them?
Why java is object oriented?