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