Which of the following is NOT true about packages?
A) a package can contain other packages
B) a package's name must be the same as the directory that contains all of the classes in the package
C) a Java source file that is part of a named package must contain a statement at the top of the file that contains the keyword package and the name of the package
D) all classes in a package are available to clients of the package
Correct Answer:
Verified
Q12: A method in a subclass is said
Q13: Java packages provide a way to group
Q14: In a class within a package,the keyword
Q15: A superclass method can be accessed by
Q16: The class from which another class is
Q18: A subclass is said to be a
Q19: The constructor of a subclass can call
Q20: In general,a class's data fields should be
Q21: A package cannot contain other packages.
Q22: An instance of a subclass can access
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents