posted 13 years ago
actually I just realized I defined it as
public static void wait(int seconds) {
....
}
1. I checked the java.lang.Object API, Since the method takes "int" as argument, it allows it to happen.
2. I agree with you that I should change the name of this method anyway !! Thanks. Now, the question is --- If I keep this
method, since it uses different method signature, would it really be a problem even I use it as "public static". Theoretically I don't think it is an issue because of the overloading principle. But just want to confirm. Again, I will change the name anyway but want to have some deeper understanding..