Learn Java Tutorial 19 package with example

Pubblicato il: 10 luglio 2015
sul canale di: 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.


In questa pagina del sito puoi guardare il video online Learn Java Tutorial 19 package with example della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Champion Mahipal 10 luglio 2015, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 125 volte e gli è piaciuto 0 spettatori. Buona visione!