Java OCA OCP Practice Question 912

Question

Which of the following are true?

Choose all that apply

  • A. An array has a fixed size.
  • B. An ArrayList has a fixed size.
  • C. An array allows multiple dimensions.
  • D. An array is ordered.
  • E. An ArrayList is ordered.
  • F. An array is immutable.
  • G. An ArrayList is immutable.


A, C, D, E.

Note

An array is not able to change size and can have multiple dimensions.

Both an array and ArrayList are ordered and have indexes.

Neither is immutable.

The elements can change in value.




PreviousNext

Related