2. To create a String object, you can use the keyword _____ before the constructor call, but you are not required to use this format. | | | | d. char 3. A String variable name is a _____ which is a variable that holds a memory address. | | | | d. reference 4. The term that programmers use to describe objects that cannot be changed is _____. | | | | d. stable 5. Which of the following is not a commonly used Character method? | | | | d. toUpper() 6. The Character class is defined in _____. | | | | d. java.Character 7. The method that determines whether two String objects are equivalent, regardless of case, is _____. | | | | d. equalsIgnoreCase() 8. A String is an example of an object that can't be changed, also known as _____. | | | | d. immature 9. A String variable that does not yet hold a memory address is known as a(n) _____ String. | | | | d. alias 10. The actual length of the _____ is the capacity of the StringBuilder object. | | | | d. variable name 11. If String movie = new String("West Side Story");, the value of movie.indexOf(s) is _____. | | | | d. 3 12. The String class replace() method replaces _____. | a. one String with another String | | | | b. a String with a character | | | | c. every occurrence of a character in a String with another character | | | | d. one character in a String with another character 13. The toString() method converts a(n) _____ to a String. | | | | d. char 14. Joining Strings with a '+' is called _____. | | | | d. parsing 15. The first position in a String _____. | | | | d. is ignored by the compareTo() method 16. The method that extracts a string from within another string is _____. | | | | d. parseString() 17. The method parseInt() converts a(n) _____. | | | | d. integer to a String 18. The difference between int and Integer is _____. | a. nonexistent; both are primitive types | | | | b. int is a primitive type; Integer is a class | | | | c. int is a class; Integer is a primitive type | | | | d. nonexistent; both are classes 19. For an alternative to the String class, and so you can change a String's contents, you can use _____. | | | | d. StringBuilder 20. Unlike when you create a String, when you create a StringBuilder, you must use the keyword _____. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |