Solved

What Is the Correct Way to Invoke Methods on Variables

Question 122

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

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents