Sapient
Company
Programming
Which of the following statements is/are correct regarding inheritance in Java?
A. Private methods cannot be overridden.
B. Inherited classes are not accessible outside a package.
C. Protected methods are final while private methods are not.
1) Statement A is wrong
2) Statement B is wrong
3) Statement C is correct
4) Statement B is correct but Statement C is wrong.
Read Solution (Total 2)
-
- Statement B is wrong
- 7 years agoHelpfull: Yes(0) No(0)
- 4) Statement B is correct but Statement C is wrong.
- 1 year agoHelpfull: Yes(0) No(0)
Sapient Other Question