So we all know that all classes implicitly extend Object. How about interfaces? Is there an implicit super-interface? I say there is. The following code compiles:
s1 and s2 here are object references, referring to instances of objects that implement Serializable. There is no such thing as an interface reference in Java.
So Java knows that whatever these objects are, they descend from java.lang.Object. Hence the above code is valid.