best answer > Why do we use return in Java 2024?- QuesHub | Better Than Quora
The most authoritative answer in 2024
  • Lucas Stewart——Works at the International Monetary Fund, Lives in Washington, D.C., USA.

    It does not need to contain a return statement, but it may do so. In such a case, a return statement can be used to branch out of a control flow block and exit the method and is simply used like this: return; If you try to return a value from a method that is declared void , you will get a compiler error.read more >>
    +119962023-05-10 14:09:53

About “方法、语句、如果您”,people ask:

READ MORE:

QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.

分享到

取消