Question: Given the following three class declarations, which sets of access modifiers can be inserted, in order, into the following blank lines that would allow all

Given the following three class declarations, which sets of access modifiers can be inserted, in order, into the following blank lines that would allow all of the classes to compile? (Choose three.) 

// Alarm.java package wake; public class Alarm { } // Coffee.java package

A. package-private (blank) and package-private (blank)

B. package-private (blank) and protected

C. protected and package-private (blank)

D. protected and protected

E. private and public

F. public and public.

// Alarm.java package wake; public class Alarm { } // Coffee.java package wake; public class Coffee { } static int clock; long getTime() [return clock; } } private boolean bringCoffee() { return new Alarm().clock 10; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Without the image of the code I will not be able to pr... 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!