A possible reason why it doesn't work for Achin Gupta could be that he has defined his own interface called Serializable, and the
Java compiler is picking that up instead of the standard java.io.Serializable.
If that's the case, then delete your own Serializable interface (and class file if you have it).