class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
Tree t = new Tree();
t.cutTree("saw", 10);
t.cutTree(10, "knife");
}
static class Tree{
public static void cutTree(String instrument, int cutLength){
System.out.println("first method");
}
public static void cutTree(int cutLength, String instrument){
System.out.println("second method");
}
}
}
Java的创造者在这背后的推理是什么?