Given the following declaration of a class, which field is accessible from outside the package com.corporation.project? Select

Question:

Given the following declaration of a class, which field is accessible from outside the package com.corporation.project?

image text in transcribed

Select the one correct answer.

(a) Field i is accessible in all classes in other packages.

(b) Field j is accessible in all classes in other packages.

(c) Field k is accessible in all classes in other packages.

(d) Field k is accessible in subclasses only in other packages.

(e) Field l is accessible in all classes in other packages.

(f) Field l is accessible in subclasses only in other packages.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: