What is JDK ?
jdk is a set of tools are used for designing , execution and debugging the java program.
These tools are like :-
- Java doc
- Java h
- Java p
- Applet viewer.
It is a java compiler is used to translate the high level instruction to the machine understandable code known as byte code.
It is a java interpreter to translate the byte code into executable code according to the local machine.
Java-doc is another tool is used to generate the document for a java program.
It is a ‘C’ header or a stub generator for executing the native method and the function in java.
It is a disassembler to translate the byte code into program code.
It is a java debugger to use detect all the errors and modify all the errors in java.
It is an another tool in jdk is use for executing the applet program and it is the default browser of java.
WHAT ARE THE JAVA PACKAGE ?
Package is a collection of classes and interfaces. In java there are different package are used such are :-
- Language Support package
- Input/output package
- Database package
- Network package
- Utility package
- Awt package
- Applet package
Language support package (Lang package)
The java has a default package which contains all the native methods & classes known as language support package. The name of the package is Java.lang package.
Input/output Package (I/O Package)
In java for input and output operation, there are different stream classes are available which are present in a package named ads java.io package.
Database Package (sql package)
For connecting the java with different database and different classes & method we are used a package named as java.sql package.
Network package (.net package)
It contains all the classes and method which are used in the network programming in java. The name of package is java.net package.
Utility package (util package)
The utility package contain the date ,time & vector classes for this type of method , we have to used the package named as java.util package.
AWT package (Abstract window tool kit)
It contain all the graphical component which are used for developing the GUI type of application. The name of the package is java.awt package.
It is used for developing the applet application in java because this package contain all the methods regarding the applet. the name of the package is Java.applet package.