Multiple Choice
A class within a package must be declared public if
A) It will be used only by other classes in the same package.
B) It will be used by classes that are not in the same package.
C) It is in the same directory as the other classes in the package.
D) It has a unique name.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: The classpath consists of a list of
Q1: Having a this reference allows:<br>A) a method
Q2: Which method returns an array of the
Q4: Static class variables:<br>A) are final.<br>B) are public.<br>C)
Q6: The import declaration import java.util.*;is known as
Q8: By default,the classpath consists only of the
Q12: Which statement is false?<br>A) The compiler always
Q12: A programmer-defined constructor that has no arguments
Q24: Which of the following is false?<br>A) A
Q25: A final field should also be declared