What will happen if you try to extend a final class in Java?
B. It will cause a runtime error.
A. It will compile successfully.
D. It will compile with warnings.
C. It will cause a compile-time error.