Thanks for the reply. Can I understnd the invoking sequence of this segment of code as follows:
At first, he run method at line 5 is called. Due to its particular parameter setting, 3 parameters, the compiler automatically uses the run method defined in line 13. ( if we only have one parameter in line 5, then compiler will use the run method defined in line 9 instead.
For the run method defined in line 9, it will call run method at line 10, which essentially is the run method defined at line 13.
Is my understanding correct?
Jesper de Jong wrote:Let's first look at the two methods in the class, lines 9 and 13. These are two methods both called run but with different arguments and a different return type. Note that in line 10, the first run method calls the other one (from line 13). In line 15, this method calls a run method in a completely different class (ClusterDriver) that you didn't show.
In the main method, on line 5, the run method of line 13 is called on a new Job object.