InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is an 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 storedI have been asked this question in an internship interview.My question is from Packages in chapter Interfaces & Packages of Java |
|
Answer» CORRECT CHOICE is (d) A package can be renamed WITHOUT renaming the directory in which the classes are STORED To explain: A package can be renamed only after renaming the directory in which the classes are stored. |
|