Originally posted by ravish kumar:
I do not think that static methods are late binded...
as at compile time reference variable type is known.
Originally posted by farrukh mahmud:
static methods are not over loaded by not static methods and vice versa but in static methods late binding is done.i.e method is called depending upon the reference not object?
Correct me if i am wrong
If a method declaration overrides or hides the declaration of another method, then a compile-time error occurs if they have different return types or if one has a return
type and the other is void. Moreover, a method declaration must not have a throws clause that conflicts (�8.4.4) with that of any method that it overrides or hides; otherwise, a compile-time error occurs.