Friday, 7 October 2011

Java Environment



     Java environment includes a large number of development tools and hundreds of classes and methods. The development tools are of the system known as :

  • Java Development Kit(JDK)
  • The classes and methods are part of the Java Standard Library(JSL),also known as the Application Programming Interface(API).

Java Development Kit
The Java Development Kit comes with a collection of tools that are used for developing and running Java programs.They include:
appletviewer
javac (Java Compiler)
java (Java interpreter)
javap(Java disassemble)
javah(for C header files)
javadoc(for creating HTML documents)
jdb(Java debugger)



Tool
Description
appletviewer

Enables  to run Java applets(without actually using a Java-compatible browser).

java

Java interpreter, which runs applets and application by reading and interpreting bytecode files.


javac

Java Compiler, which translates Java source code to Bytecode files that the interpreter can understand


javadoc

Creates HTML format documentation from Java source Code files.


javah

Produces header files for use with native methods.

javap

Java disassembler, which enables to covert bytecode Files into a program description.


jdb

Java debugger, which helps us to find errors in our programs

    
To create Java Program,need to be create a source file using a text editor.The source code is then compiled using the Java compiler Javac and executed using the java interpreter java The Java debugger jdb is used to find errors,if any in the source code.A compiled Java Program can be converted into a source code with the help of Java disassembler javap. Following figure shows the complete flow of java program.








Application Programming Interface

The Java Standard Library(or API) includes hundreds of classes and methods grouped  into several functions. Most commonly used packages are:

Language Support Package(java.lang) :
A collection of classes and methods required for implementing basic features of Java

Utilities Package (java.util):
A collection of classes to provide utility functions such as date and time functions.

Input/Output Package (java.io):
A collecton of classes required for input/output manipulation.

Networking Package (java.net):
A collection of classes for communicating with other computers via Internet.

AWT Package (java.awt) :
The abstract Window Tool Kit Package contain classes that implements platform-independents graphical user interface.

Applet Package (java.applet) :
This is includes a set of classes that allows us to create.Java applets.

The use of these library classes will become obvious when we start developing Java programs



Posted by : Ruchita Pandya

1 comment:

  1. Thanks for the post, I am techno savvy. I believe you hit the nail right on the head. I am highly impressed with your blog. It is very nicely explained. Your article adds best knowledge to our Java Online Training from India. or learn thru Java Online Training from India Students.

    ReplyDelete