Output Parameters in Java

后端 未结 8 880
夕颜
夕颜 2020-12-21 05:36

With a third party API I observed the following.

Instead of using,

public static string getString(){
   return \"Hello World\";
}

i

8条回答
  •  庸人自扰
    2020-12-21 06:17

    in my opinion, this is useful when you have more than one result in a function.

提交回复
热议问题