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?
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
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen
Question Posted: