+ 3
In java the word void means it does not return any value, Could anybody explain it to me??
4 ответов
+ 20
As long as you put c++ hashtag I'll add this:
"Think of void as the "empty structure"
http://stackoverflow.com/questions/1043034/what-does-void-mean-in-c-c-and-c
+ 2
yeah it's like void or return 0 in c++
+ 1
Yes in Java void can not return any value.
+ 1
If you replace void with int the method returns an int like : public int addition(int a , int b){
return a+b;
}
Int x = addition( 7,9);