Say you have the following method in MyClass
public class MyClas{
public void startWork(){
YourClass.doSomeWork();
//more things to do in this method
}
}
and YourClass looks like this:
public class YourClass{
public static void doSomeWork(){
// a lot of work to do here
// maybe even invoke other methods in some other classes
}
}
now what I am wondering is when the code YourClass.doSomeWork(); is executed in startWork() method, will the script continue to the next line in the same method or wait until doSomeWork() in YourClass finishes its execution?
Note that doSomeWork() doesn't return anything.