What does void do in java?

后端 未结 6 2006
孤城傲影
孤城傲影 2020-11-29 11:52

The return type—the data type of the value returned by the method, or void if the method does not return a value.

http://download.oracle

6条回答
  •  借酒劲吻你
    2020-11-29 12:05

    Void doesn't return anything; it tells the compiler the method doesn't have a return value.

提交回复
热议问题