Question 2
The Scanner class provides methods for reading String and Integer data types
Previous Next
Question 3
Static variables are associated with the class, rather than with any object
Previous Next
Question 4
The private modifier specifies that the member can only be accessed in its own class
Previous Next
Question 5
arr = new int[10]; creates an array with the numbers from 1 to 10
Previous Next
Question 6
The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot be modified
Previous Next
Question 7
In order to use the Scanner class, we must first instantiate a Scanner object and use the System.in input stream, which is tied to the keyboard
Previous Next
Question 8
To insert an element in the ArrayList, use the set() method and refer to the index number
Previous Next
Question 9
Java supports eight different primitive data types, including byte and Boolean
Previous Next