Which of the following is incorrect statement about packages?
A. Package defines a namespace in which classes are stored.
B. A package can contain other package within it.
C. Java uses file system directories to store packages.
D. A package can be renamed without renaming the directory in which the classes are stored.
Answer:A
Which of the following is incorrect statement about packages?
A. Package defines a namespace in which classes are stored. B. A package can contain other package within it. C. Java uses file system directories to store packages. D. A package can be renamed without renaming the directory in which the classes are stored.
Explanation: A package can be renamed only after renaming the directory in which the classes are stored.