Computers and Technology

Matt creates a Java class as part of his college assignment. He wants this class to be accessible within the current package only. Which access specifier should Matt use? Matt has another Java assignment with multiple classes. In this assignment, there is a general class. A few subclasses outside the package use methods from this general class. Which access specifier should Matt use for the general class?

Matt should use the (blank) access specifier for the first class.

A. Protected
B. Default
C. Private
D. Public

He should use the (blank) access specifier for the general class.

A. Protected
B. Public
C. Default
D. Private

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 25.06.2019 02:30, 30valgolden
Technology has changed communications by replacing or supplementing traditional modes of communication that were primarily
Answers: 2
image
Computers and Technology, 25.06.2019 09:00, pacetys
Which element of a presentation program’s interface displays the slide you are currently creating or editing? a. slide pane b. tool bar c. menu bar d. scroll bar
Answers: 1
image
Computers and Technology, 25.06.2019 21:30, alyxkellar06
Hallo! was ist die hauptstadt von northdakote wirklich schätzen, wenn jemand gefragt
Answers: 2
image
Computers and Technology, 26.06.2019 03:00, kami2006
When you move a paragraph in a document that includes text with a footnote, what happens to the footnote reference?
Answers: 1
Do you know the correct answer?
Matt creates a Java class as part of his college assignment. He wants this class to be accessible wi...

Questions in other subjects: