Monday, September 14, 2015

Java API Packages in java

Java API Packages or Java Application programming Interface

As you’ve seen, Java contains many predefined classes that are grouped into categories of

related classes called packages. Together, these are known as the Java Application Programming

Interface (Java API), or the Java class library. A great strength of Java is the Java

API’s thousands of classes. Some key Java API packages are described in Fig. 6.5, which

represents only a small portion of the reusable components in the Java API.
 
Package Description
 
 
java.applet  ,The Java Applet Package contains a class and several interfaces required



to create Java applets—programs that execute in web browsers. Applets

 
java.awt ,  The Java Abstract Window Toolkit Package contains the classes and



interfaces required to create and manipulate GUIs in early versions of
 
Java. In current versions, the Swing GUI components of the javax.swing

packages are typically used instead.
 
 
 
 
java.awt.event , The Java Abstract Window Toolkit Event Package contains classes and



interfaces that enable event handling for GUI components in both the
 
java.awt and javax.swing packages



 
java.awt.geom ,The Java 2D Shapes Package contains classes and interfaces for working



with Java’s advanced two-dimensional graphics capabilities.
 
java.io , The Java Input/Output Package contains classes and interfaces that



enable programs to input and output data.
 
java.lang ,The Java Language Package contains classes and interfaces (discussed



bookwide) that are required by many Java programs. This package is

imported by the compiler into all programs.
 
java.net ,The Java Networking Package contains classes and interfaces that



enable programs to communicate via computer networks like the Internet.

 
java.sql  ,The JDBC Package contains classes and interfaces for working with



databases.
 
java.utilThe Java Utilities Package contains utility classes and interfaces that



enable such actions as date and time manipulations, random-number
 
processing (class Random) and the storing and processing of large



amounts of data.
 
java.util.concurrent The Java Concurrency Package contains utility classes and interfaces
 
 




for implementing programs that can perform multiple tasks in parallel.
 
javax.media ,The Java Media Framework Package contains classes and interfaces for



working with Java’s multimedia capabilities.
 
javax.swingThe Java Swing GUI Components Package contains classes and interfaces



for Java’s Swing GUI components that provide support for portable

GUIs.projavax.
swing.event , The Java Swing Event Package contains classes and interfaces that
 
 
enable event handling (e.g., responding to button clicks) for GUI components
 
in package javax.swing.
 
 
 
 
 
javax.xml.ws , The JAX-WS Package contains classes and interfaces for working with
 
 
web services in Java.
 
 

1 comment:

  1. A lot to take in but was informative . Nice class Mr. Gabr

    ReplyDelete