Solved

What Is the Correct Way to Invoke Methods on Variables

Question 1

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:

verifed

Verified

Related Questions