What are differences between an array and an object of the Array List class? What is the difference between an Array List object’s size and its capacity?

Optional activities:

List your interesting or muddy points

Answer some or all of the questions listed below:

1) What are conditions to using a loop to search a target value in an array?

2) If you declare a 2-D array, named arr, what are arr.length and arr[0].length?

3) What are differences between an array and an object of the Array List class?

4) What is the difference between an Array List object’s size and its capacity?

5) Can you use the operator == to compare two array or Array List objects to check whether they hold the same contents? Why?

6) What is the parameter in the main() method, String[] args, for? Where are the values of the argument from?

Ask questions, or/and answer others’ questions.

 

What are differences between an array and an object of the Array List class? What is the difference between an Array List object’s size and its capacity?
Scroll to top