---
title: "What is package?"  
description: "What is package?"  
author: "Anonymous User"  
published: 2015-04-22  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2420/what-is-package  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is package?

A java package is a group of similar types of classes, interfaces and sub-packages.\
Package in java can be categorized in two form, built-in package and user-defined package.\
There are many built-in packages such as java, lang, awt, javax, swing, net, io, util, sql etc\
**Advantage**1) Java package is used to categorize the classes and interfaces so that they can be easily maintained.2) Java package provides access protection.3) Java package removes naming collision

## Answers

### Answer by Anonymous User

A java package is a group of similar types of classes, interfaces and sub-packages.\
Package in java can be categorized in two form, built-in package and user-defined package.\
There are many built-in packages such as java, lang, awt, javax, swing, net, io, util, sql etc\
**Advantage**1) Java package is used to categorize the classes and interfaces so that they can be easily maintained.2) Java package provides access protection.3) Java package removes naming collision


---

Original Source: https://www.mindstick.com/interview/2420/what-is-package

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
