Multiple choice general knowledge

which statement is true regarding java packages???

  1. collection of classes,i/face and subclss

  2. contains keywords 1.import and 2.package

  3. has 2 types 1.build in and 2.user defined

  4. all the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Java packages are collections of classes, interfaces, and subclasses. The 'package' keyword defines a package, and 'import' is used to include packages. Java has both built-in packages (like java.util) and user-defined packages. Option A has poor grammar but all three concepts (A, B, C) are valid.