I have the next class:
public class Matrix implements ITensor {
public double get(int row, int column) {
return mData[row][column];
}
@Override
public double get(int... indices) {
return get(indices[0], indices[1]);
}
}
So get(r, c)
suits for both signatures, will Java call the first declaration (I can check, of course, I mean if it's a standard behavior)? How does JVM chooses a method signature in this case?
P.S. Seems it's a noobie's question but I can't find information myself