In Java, which access level applies to a class member when no access modifier…

PYQ BPSC TRE 2024

In Java, which access level applies to a class member when no access modifier is written, so that the member is accessible only from code in the same package?

  1. A.

    private

  2. B.

    public

  3. C.

    package-private

  4. D.

    protected

  5. E.

    static

Attempted by 963 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bpsc

Loading lesson…