Learn Java Tutorial 19 package with example

Publié le: 10 juillet 2015
sur la chaîne: Champion Mahipal
125
0

This tutorial is made for learning about the package with example of Java Programming Language.

A Java package is a mechanism for organizing Java classes into namespaces similar to the modules of Modula, providing modular programming in Java. Java packages can be stored in compressed files called JAR files, allowing classes to be downloaded faster as groups rather than individually.

What Is a Package?

A package is a namespace that organizes a set of related classes and interfaces. Conceptually you can think of packages as being similar to different folders on your computer. You might keep HTML pages in one folder, images in another, and scripts or applications in yet another. Because software written in the Java programming language can be composed of hundreds or thousands of individual classes, it makes sense to keep things organized by placing related classes and interfaces into packages.

The Java platform provides an enormous class library (a set of packages) suitable for use in your own applications. This library is known as the "Application Programming Interface", or "API" for short. Its packages represent the tasks most commonly associated with general-purpose programming. For example, a String object contains state and behavior for character strings; a File object allows a programmer to easily create, delete, inspect, compare, or modify a file on the filesystem; a Socket object allows for the creation and use of network sockets; various GUI objects control buttons and checkboxes and anything else related to graphical user interfaces. There are literally thousands of classes to choose from. This allows you, the programmer, to focus on the design of your particular application, rather than the infrastructure required to make it work.


Sur cette page du site, vous pouvez voir la vidéo en ligne Learn Java Tutorial 19 package with example durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Champion Mahipal 10 juillet 2015, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 125 fois et il a aimé 0 téléspectateurs. Bon visionnage!