Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of the following is incorrect statement about packages?
  2. 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.

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    A package can be renamed only after renaming the directory in which the classes are stored.


Be The First To Comment