Computer Applications
Consider the given array and answer the questions given below:
int z[ ] [ ] = { {2, 3, 4}, {5, 1, 2}, {7, 9, 3}};
(a) What is the order of the array z[ ][ ]?
(b) What is the value in z[2][0]?
Java Arrays
2 Likes
Answer
(a) The order of the array z[ ][ ] is 3 × 3.
(b) The value in z[2][0] is 7.
Answered By
1 Like
Related Questions
In the example given below of class Cat, identify the variable and the methods:
Cat Name meow() eat() play() Give the output of the following program segment and mention how many times the loop is executed.
int k = 100; while (k>=10) { System.out.println(k); k-=40; }Give the output of the following:
(a) "ROSE".compareTo("ROJA")
(b) "DEDICATE".replace('D', 'L')
Consider the following array and answer the questions given below:
char ch [ ] = { ‘A’, ‘%’, ‘y’, ‘@’, ‘7’, ‘p’};(a) How many bytes does the array occupy?
(b) What is the output of the statement Character.isDigit(ch[4])?