Anirudh Vyas wrote:
correct me if I am wrong on this
Consider yourself corrected. There's nothing to keep a class file from saying it extends another, final class. Whether or not that class file will be accepted at runtime depends on how closely the JVM is looking at classes, which, in turn, depends on whether the verifier is running, and whether there's a security manager. But as far as defining such a class: of course you can.