Given the source file A.java: Select the two correct answers. (a) Both class A and class B
Question:
Given the source file A.java:
Select the two correct answers.
(a) Both class A and class B will be placed in the package net.alphabet.
(b) Only class A will be placed in the package net.alphabet. Class B will be placed in the default package.
(c) Both class A and class B can access the imported class java.util.ArrayList by its simple name.
(d) Only class A can access the imported class java.util.ArrayList by its simple name.
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: