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
English,
2 months ago
Science,
2 months ago
Computer Science,
2 months ago
Science,
5 months ago
Computer Science,
5 months ago
Social Sciences,
10 months ago