Multiple Choice
If you want to store the value "Harry Potter" in the String variable name, which of the following statements could you use?
A) String name = "Harry Potter";
B) String name = new String("Harry Potter") ;
C) String name = "Harry" + " " + "Potter";
D) String name = new String("Harry" + " " + "Potter") ;
E) Any of these would work
Correct Answer:

Verified
Correct Answer:
Verified
Q46: Given the double likelihood = 0.013885 and
Q47: You cannot cast a String to be
Q48: Example Code Ch 02-1<br>public class Questions1_4<br>{<br>public static
Q49: Which library package would you import to
Q50: Write an output statement which will output
Q52: Explain what the following statement computes:<br>int z
Q53: If x is an int and y
Q54: There are three ways that data conversion
Q55: Using getCurrencyInstance() formats a variable, automatically inserting<br>A)
Q56: Assume that x, y, and z are