Question: Assume there is a class Bouncer with a protected variable. Methods in which class can access this variable? A. Any subclass of Bouncer or any

Assume there is a class Bouncer with a protected variable. Methods in which class can access this variable?

A. Any subclass of Bouncer or any class in the same package as Bouncer

B. Any superclass of Bouncer

C. Only subclasses of Bouncer

D. Only classes in the same package as Bouncer

E. None of the above

Step by Step Solution

3.45 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The correct answer is A Any subclass of Bouncer or any class in the same package as Bouncer In Java ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!