+ 2
void is the return type in which it means that there is nothing to be returned. main() is a method in java. However, it is the main method that makes your java application runs, thus the name. So, void main() basically is a method that you need in order to run everything. Without this, application cannot run. Hope this helps :)
23rd Mar 2018, 8:08 AM
Deddy Tandean