Multiple Choice
What is the correct way to invoke methods on variables in Java that are strings?
A) Methods can only be invoked on string constants, not on variables.
B) For each method there is a special operator that must be used.
C) There are no methods available in Java for string variables.
D) Invoke them using the variable name and the dot (.) notation.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: What is wrong with the following code
Q3: What will be printed by the statement
Q4: When you purchase donuts, they come in
Q5: Which statement is true about variable names
Q6: What is the value of Math.abs(-2)?<br>A)-2<br>B)0<br>C)2<br>D)4
Q7: Assume the following variable has been declared
Q8: Which of the following options declares a
Q9: Which is the Java equivalent of the
Q10: Assume the following variables have been declared
Q11: Which is the Java equivalent of the