- Developed by James Gosling, Arthur Van Hoff and Andy Bechtolsheim.
- Original name “oak”.
- Developed by Sun microsystem.
Features of java
- Platform independent
- Freely available
Types of Java programs
- Internet Applet
- Stand-alone application
These applications need external support like the internet.
These applications do not need internet support.
Java Byte Code (JBC)
The code converted by the Java compiler is known as Java byte code. It is an intermediate code that is neither machine-dependent not platform dependent.
Java Virtual Machine (JVM)
It is a machine that converts source code into java byte code.
Java development kit (JDK)
It is a collection of Java development tools.
API stands for application program interface which is a collection of pre-compiled codes.
Structure of a java program
This section is used to giving comments. It is an optional section comment can be given in two ways:
- Single line comment – / /
- Multi-line comment – /*——————*/
In this section, packages are imported. This is also an optional section.
It is a collection of classes
In this session, class is defined.
It is a compulsory section in which the functionality of a program is described.
It is an IDE (Integrated Development Environment) developed for oops.
Features of Blue J
- Fully integrated environment
- Graphical and textual editing
- Built-in edition, debugger, etc.
It is an executable file of a JAVA project. It can be executed by double-clicking on its icon.
What is the purpose of a new operator?
The purpose of the new operator is to create objects.
What is the use of keyword import?
The use of Keyword import is to include the package.