Ask Question
23 June, 18:46

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

a. method

b. statement.

c. main program call

d. global

0
Answers (1)
  1. 23 June, 20:14
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers