01 Java Introduction
01 Java Introduction
01 Java Introduction
History of Java
Introduced in 1995 by Sun Microsystems.
Its objective was to develop a software for embedding in
consumer electronic devices.
Initially called ‘Oak’.
Java being secure, portable, and platform-independent
was found to be capable of addressing large scale
problems across the Internet.
What is Java ?
Features:
Simple - The Java designers removed a number of
complex features that existed in C, such as pointer
manipulation, operator overloading etc.
Object-Oriented - Everything is an object in Java.
Therefore, the focus is on the data, and the methods that
operate on the object in the application instead of
procedures.
Platform-independent - It refers to the ability of the
program at the source level, which allows the user to
move the source code from one system to another,
compile the code, and run it cleanly on a system.
Robust - Java checks the code at the time of
compilation, and also at the time of interpretation.
Swing – A new set of classes and interfaces used to
create an advanced GUI with a “look and feel” design.
Drag and drop – The capability to interactively transfer
information across different applications and from one
part of a program’s interface to another.
Java 2D API - A set of classes for advanced 2D graphics
and imaging.
Java Sound – A totally new set of characteristics
pertaining to Java’s audio features.
RMI - Remote Method Invocation allows applications to
call object methods located at remote sites and
communicate with them.
class sample
{
public static void main(String ar[])
{
System.out.println("Welcome to Java");
}
}