Ask 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

+3
Answers (1)
  1. 26 March, 06:53
    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?
Find 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 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