answersLogoWhite

0

A Java package is a mechanism for organizing Java classes into namespaces similar to the modules of Modula. Java packages can be stored in compressed files called JAR files, allowing classes to download faster as a group rather than one at a time. Programmers also typically use packages to organize classes belonging to the same category or providing similar functionality.

· A package provides a unique namespace for the types it contains.

· Classes in the same package can access each other's members.

package is a container in which similar classes are grouped together.

package avoid the redundance of classes. it also provide security to hide the code only by importing the packege which contains the required class.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

For which operating systems are spreadsheet packages available?

Spreadsheet packages are available for various operating systems, such as Windows, Macintosh, UNIX, Java, Linux, and VMS.


How many packages in java and show the list?

There are almost 200 packages in the standard J2SE distribution. Please see the related link below detailing the Java API (for Java 7) for a full listing.


Is header files in c are similar to packages in java?

No.


How packages are created in java?

jvac -d classname.java


What are the different types of package in java?

1.user defined packages 2.predefined packages


What is Packages in Java programming?

basically packages are a collection or a directory of similar classes. there are some inbuilt packages in java which prove to be really useful like the java.lang package which automatically is imported into your program. in addition you can also create your own packages and its really simple to create them! :)


Where can Java be used?

Java is a computer programming language, and can work across many different operating systems. Due to its versatility it is used in many software packages, e.g. games, graphic's software, etc.


Are there Senior travel packages available for a trip costa Rica?

There are many travel packages available to senior especially if one books through a senior group. Other packages or perks may be available as a result of senior status.


What packages are available at Club Med Ski?

Club Med has many different packages available to choose from. They have packages to exotic places such as Turkey, Brazil or Greece, or you can go to warmer destination in Asia.


How to save and compile packages in java?

by adding more documents


Are there family Vietnam vacation packages available?

Yes, there are many family Vietnam vacation packages available now, and Vietnam has become one of the most popular international destinations for families because it’s affordable, safe, and has a good mix of beaches, cities, food, and sightseeing. Most family packages usually include places like: Hanoi Ha Long Bay cruise Da Nang Hoi An Ho Chi Minh City Phu Quoc island Many travel companies now offer packages with flights, hotels, visa support, airport transfers, and sightseeing included. Family packages from Chennai and other Indian cities generally start around ₹30k–₹80k per person depending on hotel category and duration. For families with kids, Da Nang and Phu Quoc are usually the best choices because they have beaches, theme parks, cable cars, and family-friendly resorts. Places like VinWonders Phu Quoc and Ha Long Bay are very popular with families. One useful tip: avoid planning too many cities in one trip if traveling with children. A relaxed 7–8 day itinerary usually works best. We recently helped several families plan customized Vietnam trips through Aladdin Holidays Vietnam Family Packages , and many parents preferred packages that combined beach stays with short city tours so kids wouldn’t get too tired.


What is the main feature of the programming language Java Classpath?

Java Classpath is a parameter that tells the Java Virtual Machine or the Java Compiler, where to search for user-defined classes and packages on a computer.