For the following segment of java code, the method of “run” occurs four times. I am quite confusing about the relationships of these four occurrences of “run”. Can you explain this to me? The original code is pretty long, I just keep the part that is related to my question.
public final class Job extends AbstractJob {
private Job( ) {
}
public static void main(String[] args) throws Exception {
new Job( ).run(new Path("testdata"), output, 10 );
}
@Override
public int run(String[] args) throws IOException, ClassNotFoundException, InterruptedException {
run(input, output, alpha0);
return 0;
}
public void run(Path input, Path output, double alpha0)
throws IOException, ClassNotFoundException, InterruptedException {
ClusterDriver.run(directoryInput, output, alpha0);
}
}