What access level do you need to specify in the class declaration to ensure that only classes from the same directory can access it?

Options
- Private
- Public
- You do not need to specify any access level, and Java will use a default package access level
- Protected


CORRECT ANSWER : You do not need to specify any access level, and Java will use a default package access level

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement