click below
click below
Normal Size Small Size show me how
Java - Ch. 7
Java Chapter 7
Question | Answer |
---|---|
Every array object knows its own length and stores it in... | a length instance variable |
The %0 flag displays... | A leading zero |
The JVM checks array indices to ensure that they are greater than or equal to 0 and less than the length of the array—this is called... | bounds checking |
In this method of passing arrays to a methods, changes to the called method’s copy do not affect the original variable’s value in the caller. | Pass-by-value (also called call-by-value) |
In this method of passing arrays to a methods,The called method can access the argument’s value in the caller directly and modify that data, if necessary. | Pass-by-reference (also called call-by-reference) |
Parameter type followed by an ellipsis (...) indicates what? | the method receives a variable num-ber of arguments of that particular type. |