-
Why do you use void in Java?
实例
这是 关键字
Questioner:Benjamin White 2023-05-05 14:09:55
The most authoritative answer in 2024
-

-
Harper Gonzales——Studied at the University of British Columbia, Lives in Vancouver, Canada.
The keyword static allows main( ) to be called without having to instantiate a particular instance of the class. This is necessary since main( ) is called by the
Java interpreter before any objects are made. The keyword
void simply tells the compiler that main( ) does not return a value.
read more >>
About “实例、这是、关键字”,people ask:
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.