Question: You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?

Options

A : public

B : private

C : protected

D : default access

Click to view Correct Answer

Previous || Next

Declarations and Access Control - General Questions more questions

You want subclasses in any package to have access to....

Which three form part of correct array declarations?

Which of the following is/are legal method declarations?

Which cause a compiler error?

Which three are valid method signatures in an interface?

What is the widest valid returnType for methodA in line....

Which one creates an instance of an array?

Which two of the following are legal declarations for nonnested....

Which of the following class level (nonlocal) variable declarations will....

Which two cause a compiler error?

Declarations and Access Control - General Questions more Online Exam Quiz

Radio Receivers - Part 1

Satellite Communication - Part 1

Signals and Systems - Part 1

General Principles - General Questions

Language Fundamentals - General Questions

Objects and Collections - General Questions