Java environment includes a number of development tools, classes and methods. The development tools are part 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 (JDK) – The JDK comes with a set of tools that are used for developing and running Java program are as follows.
Tools | Description |
Applet viewer |
It is used for viewing the applet |
Javac |
It is a Java Compiler |
Java |
It is a java interpreter |
Javap |
Java disassembler, which convert byte code into program description |
Javah |
It is for java C header files |
Javadoc |
It is for creating HTML document |
Jdb |
It is Java debugger |
For compiling and running the program we have to use following commands:
1. javac (Java compiler)
In java, we can use any text editor for writing program and then save that program with .java extension. Java compiler convert the source code or program in bytecode.
Syntax
javac filename.java
If my filename is "abc.java" then the syntax will be
javac abc.java
2. java(Java Interpreter)
As we learn that, we can use any text editor for writing program and then save that program with .java extension. After successful compilation of java program generated class file (.class), interpreter convert it into machine code.
Syntax
java filename
If my filename is "abc.java" then the syntax will be
java abc