Which fields will be accessible

Report a typo

You have a class with three fields:

public class SomeClass {

    private AnotherClass instanceField = new AnotherClass();

    String stringField = "";

    protected int intField;
}

Which of these fields will be accessible from a method of AnotherClass in the same package (not default)?

Select one or more options from the list
___

Create a free account to access the full topic