a method can use a single return statement
Answers
Answered by
0
Answer:
it is write onces runs anywhere
Answered by
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
Computer Science,
3 months ago
English,
3 months ago
Math,
3 months ago
Science,
6 months ago
Computer Science,
6 months ago
Social Sciences,
11 months ago