hello i just get started with java so i have a question where the difference from c/c++ and the famous lovely java begin, the function or better method, so in c/c++ we can make a function prototype on top the main and then define it later like this
int myfunctionprototype(int arg1, int arg2);//function prototype
int main (void){
callfunction = myfunctionprototype( x, y);
}
int myfunctionprototype(int arg1, int arg2){
and here define what to do;
return result;
}
i have undestand all structure of java methode but i only want to know if all method my be declared on the top and define there.