What is Java?

java is an object-oriented programming language developed by James Gosling and colleagues at Sun Micro-system in the early 1990’s. Unlike conventional languages which are generally designed either to be compiled to native(machine) code or to be interpreted from source code at runtime, Java is intended to be compiled to a bytecode, which is then run(generally using JIT compilation) by a Java Virtual Machine. The language itself borrows much syntax from C and C++ but has a simpler object model and fewer low-level facilities.Java is only distantly related to javaScript, though they have similar names and share a C=like syntax.

APPLICATION OF JAVA

Java Application
Java Application

Java Virtual Machine(JVM)

The Java Virtual Machine, or java interpreter, is the crucial piece of every java installation. By design, the Java program is easily movable, but they are only movable to the platform to which a java interpreter has been ported. Sun ship VM implementation for its own Solaris operating system and for Microsoft Window and Linux platform.

Java Runtime Environment(JRE)


The Java Runtime Environment(also called JRE) is a software framework developed by Oracle Corporation, which runs regardless of computer architecture. It provides the Java virtual machine and a large library.which allow running an application written in the Java programming language.

Runtime class libraries

These are set of class libraries that contain different methods for the execution of the program.

User interface toolkits

These are the set of toolkit which contains user interface libraries such as AWT and Swing for a user to implement an application program.

Deployment technologies

JRE contains the following deployment technologies

a) Java plug-in: Enables the execution of a Java applet on the web browser.

b) Java Web Start: With Web Start, users can launch the application through a Web browser without any installation procedure.

So let us learn about the syntax of java:

class A
{
public static void main(String args[])
{
-
-
statement
-
-
}
}
save the file as A.java
to compile:Javac A.java
to execute:Java A
Translate »