Tuesday, 7 August 2018

JAVA ENVIRONMENT


JAVA ENVIRONMENT
It is a product from sun micro systems which is a collection of ‘n’ number of tools and
utilities which are used together to develop dynamic applications using java. The
development tools are part of the system known as Java Development Kit (JDK) and the
classes and methods are part of the Java Standard Library (JSL), also known as the
Application Programming Interface (API).

Tools of Java Development Kit (JDK)

1. Javac (Java Compiler) :
Usage: javac <filename.java>
It stands for Java Compiler which takes the source code and translates into byte code.
2. Java (Java Interpreter) :
Usage: java <filename>
It stands for Java Interpreter that interprets the byte code and produces the output.

3. applet viewer (for viewing Java applets) :
Usage: applet viewer <filename.java>
It is used to run applet based programs that provides graphical interface

4. Javap (Java help) :
Usage: javap <fully qualified class name>
It stands for Java Disassembler which will explore all methods and properties of the given
class.

5. Jdb (Java Debugger) :
Usage: jdb <class file>
It stands for Java Debugger. It makes the class file to execute line by line interruption.

6. Java doc (Java Documentation) :
Usage: javadoc <filename.java>
It is used to create HTML files for every class and method used in the program.

Application Programming Interface (API)
The Java Standard Library includes hundreds of classes and methods grouped into several
functional packages. Most commonly used packages are:

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

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

I/O Package:
A Collection of classes required for Input/Output manipulations

Networking Package:
A collection of classes for communicating with other computers via network.
AWT Package:
The Abstract Window Tool Kit package contains classes that implements platform
independent graphical user interface.

Applet Package:
This includes a set of classes that allows us to create Java applets.

No comments: