Home / MCQ Bank / Computer
Computer Inheritence

In Java, can a subclass access package-private members (fields and methods) of its superclass defined in another package?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • No, package-private members are not accessible to subclasses from different packages

Related Computer Questions

Correct way to define a value 6.28 in a variable 'pi' where value cannot be modified? Which of the following attribute of form tag is not set by using document object in JavaScript? End-to-end connectivity is provided from host-to-host in: Symbolic languages were developed in In tally you get currency symbol option from ________ menu