Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of the following is correct way of importing an entire package 'pkg'?
  2. A.
    import pkg.
    B.
    Import pkg.
    C.
    import pkg.*
    D.
    Import pkg.*

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Operator * is used to import the entire package.


Be The First To Comment