Ask Question
5 September, 13:48

Assuming myMethod () returns a string, which of the following statements is valid? Select one:

a. myMethod ();

b. System. out. println (myMethod ());

c. String result = "Return value is " + myMethod ();

d. All of these are valid

+2
Answers (1)
  1. 5 September, 13:57
    0
    D

    Explanation:

    The Method can be called in any of the three ways
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Assuming myMethod () returns a string, which of the following statements is valid? Select one: a. myMethod (); b. System. out. println ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers