Interview Questions

What methods can be overridden in Java?

C++ Interview Questions and Answers


(Continued from previous question...)

What methods can be overridden in Java?

In C++ terminology, all public methods in Java are virtual. Therefore, all Java methods can be overwritten in subclasses except those that are declared final, static, and private.

(Continued on next question...)

Other Interview Questions