Java Programming
primer-original-v2mediumJava Programming03 Class And Objects, Date Apiprimer-original-v2

The methods of a class with the ____________ access specifier cannot be accessed in its subclass class of different package.

Answer options

A
protected
B
default
C
public

Correct answer: default

Explanation

Quick AnswerThe correct answer is default because it directly addresses the core logic of Java Programming.

This question has been retained as-is due to its unique context.

Related Java Programming questions

Practice more Java Programming questions

PrimerPrep has independently reviewed practice questions and coding exercises — all free.