What methods can be overridden in Java?

Q

What methods can be overridden in Java?

✍: .fyicenter.com

A

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.

2012-03-27, 2606👍, 0💬