Answer the following statements true (T) or false (F)
1) In Java, array indexes begin at 0 and end at one less than the length of the array.
2) If an array is declared to hold objects, none of the objects can have instance variables that are arrays.
3) An array declared as an int[] can contain elements of different primitive types.
4) The elements of a two-dimensional array are called rows and columns.
5) It is possible to store 11 elements in an array that is declared in the following way.```
int[] array = new int[10];
```
1) T
2) F
3) F
4) F
5) F
You might also like to view...
Answer the following statements true (T) or false (F)
1) An array can store many different types of values. 2) An array index should normally be of type float. 3) An individual array element that’s passed to a method and modified in that method will contain the modified value when the called method completes execution. 4) Command-line arguments are separated by commas.
The number of elements an array will hold is known as the ____ of the array.
A. bounds B. limits C. constraints D. size
Explain the difference between using the keywords While and Until within a Do...Loop statement.
What will be an ideal response?
One of the disadvantages of the infix notation is that _____.
A. it is hard for humans to understand B. some expressions can evaluate to two different values C. not all algebraic expressions can be represented with it D. we need to use parentheses to control the evaluation of the operators