What are packages in Java?

70. What are packages in Java?

  1. Methods of a friend class
  2. Methods of the main class
  3. Way to encapsulate a group of classes, sub-packages, and interface
  4. All of these

Answer: C) Way to encapsulate a group of classes, sub-packages, and interface

Explanation:

Java packages are the ways to encapsulate a group of classes, sub-packages, and interface.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.