Question 1
A String in Java is an object, which contain methods that can perform certain operations on strings
Next
Question 2
arr = new int[10]; creates an array with the numbers from 1 to 10
Previous Next
Question 4
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 5
Because clients cannot access private instance variables of a class, classes usually provide public accessor ( getter ) methods for the instance variables
Previous Next
Question 6
When a number of objects are created from the same class blueprint, they each have their own distinct copies of instance variables
Previous Next
Question 8
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 9
The + operator can be used between strings to add them together to make a new string OR you can use the concat() method to concatenate two strings
Previous Next