Ask Question
9 December, 06:14

In Java, if the method returns void, a call to the method mustbe a:

a. method

b. statement.

c. main program call

d. global

+5
Answers (1)
  1. 9 December, 06:35
    0
    B - Statement

    Explanation:

    A method returning void (not returning a function value) cannot be called through another method, expression or constant but would be called simply through an individual statement. E. g. when working with istream and ifstream >> cin. get ();
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “In Java, if the method returns void, a call to the method mustbe a: a. method b. statement. c. main program call d. global ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers