☕
TechLearn
Java Tutorial
Back to Home
315 topics covered
Home/Java/Packages and Access Control
☕ Java

Packages and Access Control

8 lessons in this section of the Java tutorial. Work through them in order, or jump to the one you need.

  1. 1.Package Concept

    A package in Java is a namespace that groups related classes, interfaces, enums, and annotations into a logical unit.

  2. 2.Built-in Packages

    Java ships with a rich standard library organised into packages under the java and javax namespaces.

  3. 3.User-defined Packages

    Learn how to create user-defined packages in Java: package declaration, directory layout, compiling with javac -d, access modifiers, naming rules and structure patterns.

  4. 4.import

    The import statement allows you to use a class, interface, or enum by its simple name rather than its fully qualified name.

  5. 5.Static Import

    Static import allows you to access static members — static fields and static methods — of a class by their simple name without qualifying them with the class name.

  6. 6.Package Protection

    Package protection refers to the package-private access level — the default access when no modifier (public, protected, or private) is written.

  7. 7.JAR Files

    A JAR (Java ARchive) file is a compressed archive in ZIP format that packages compiled Java class files, resources (images, configuration files, properties), and…

  8. 8.Manifest File

    The manifest file (META-INF/MANIFEST.MF) is a text file inside every JAR that contains metadata about the JAR and its contents.

← Exception HandlingJava Memory Management →
TechLearn

Free Java and Spring Boot tutorials for developers, written by Ajeet Kumar.

Tutorials

  • Java Tutorial
  • Spring Boot Tutorial

About & Legal

  • About
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Disclaimer

© 2026 TechLearn. All rights reserved.