Learn Java Tutorial 19 package with example

Publicado em: 10 Julho 2015
no canal de: 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.


Nesta página do site você pode assistir ao vídeo on-line Learn Java Tutorial 19 package with example duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Champion Mahipal 10 Julho 2015, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 125 vezes e gostou 0 espectadores. Boa visualização!