Difference between `foo()` and `foo(void)`

前端 未结 2 594
长情又很酷
长情又很酷 2021-01-29 02:18

In Java, is there any difference between this two function declarations?

public void foo() {/*...*/}

public void foo(void) {/*...*/}

Here you

2条回答
提交回复
热议问题