Home » JAVA Programming » Packages » Question
  1. Which of the following is the correct way of importing an entire package ‘pkg’?
    1. Import pkg.
    2. import pkg.
    3. Import pkg.*
    4. import pkg.*
    5. None of these
Correct Option: D

Operator * is used to import the entire package.



Your comments will be displayed only after manual approval.