Computer Science, asked by sr2249294, 5 months ago

a method can use a single return statement​

Answers

Answered by prasadshruti232
0

Answer:

it is write onces runs anywhere

Answered by ArpitPandey17
1

Explanation:

The question is whether a method may have multiple return statements or just one. The answer may surprise you: In a pure object-oriented world, a method must have a single return statement and nothing else. Yes, just a return statement and that's it. No other operators or statements.

Similar questions