Packages


  1. Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    All of above


  1. Which of these access specifiers can be used for a class so that its members can be accessed by a different class in the different package?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    public



  1. Which of the following is the correct way of importing an entire package ‘pkg’?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Operator * is used to import the entire package.


  1. Which of the following is an incorrect statement about packages?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

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



  1. Which of the following package stores all the standard java classes?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    java