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)
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.
//File: A.java package net.alphabet; import java.util.ArrayList; public class A {} class B {})
Step by Step Solution
3.40 Rating (153 Votes )
There are 3 Steps involved in it
a and c Bytecode of all reference t... View full answer
Get step-by-step solutions from verified subject matter experts
