Java Application Programming Interface (API)

Java Application Programming Interface (API)

Java Online TrainingIn Java, most basic programming tasks are performed by the API’s classes and packages, which are helpful in minimizing the number of lines written within pieces of code. The Java language defines the syntax and semantics of the Java programming language.

An application programming interface (API) is a library of functions that Java provides for programmers for common tasks like file transfer, networking, and data structures. Similar to a user interface, which facilitates interaction between humans and computers, an API serves as a software program interface facilitating interaction.

The Java Application Programming Interface, included with the Java Development Kit (JDK), describes the function of each of its components. In Java programming, many of these components are pre-created and commonly used. Thus, the programmer is able to apply prewritten code via the Java API. After referring to the available API classes and packages, the programmer easily invokes the necessary code classes and packages for implementation.

Java Development Kit (JDK) is comprised of three basic components, as follows:

Java compiler
Java Virtual Machine (JVM)
Java Application Programming Interface (API)

The JVM executes Java bytecode. Normally, you produce Java bytecode by compiling code that conforms to the Java language. (However, you can compile code written in other languages into Java bytecode.).

The Java API is the set of classes included with the Java Development Environment. These classes are written using the Java language and run on the JVM. The Java API includes everything from collection classes to GUI classes.

Type of Java API

There are three types of Java Application Programming Interfaces available in Java Technology.

Official Java Core API

The official core API is part of JDK download. The three editions of the Java programming language are Java SE, Java ME and Java EE.

Optional Java API

The optional Java API can be downloaded separately. The specification of the API is defined according to the JSR request.

Unofficial APIs

These API’s are developed by third parties and can downloaded from the owner website.

Thus Java application programming interface (API), is a collection of prewritten packages, classes, and interfaces with their respective methods, fields and constructors.

For Java Online Training please visit http://www.revanthtechnologies.com