Question 13 / 50:  Suppose a class has public visibility. In this class we define a protected method. Which of the

following statements is correct?

A  This method is only accessible from inside the class itself and from inside all subclasses.
B  In a class, you can not declare methods with a lower visibility than the visibility of the
class in which it is defined.
C  From within protected methods you do not have access to public methods.
D  This method is accessible from within the class itself and from within all classes defined
in the same package as the class itself.
<< First < Previous Flashcard Next > Last >>
Quiz Home Page
https://www.jobilize.com/abishek-devaraj-core-java-unit-test-1-caj003

Core Java Unit Test-1(CAJ003)

Author:

Access: Public Instant Grading

Ask
Yasser Ibrahim
Start Quiz
Mike Wolf
Start Exam
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/abishek-devaraj-core-java-unit-test-1-caj003" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>