Java programming language was developed by Sun Microsystems which was initiated by James Gosling.It took 18 months to develop the first working version. This language was initially called “Oak,” but was renamed “Java” in 1995.
The newest release of Java is called Java SE 7. Java also introduces other platforms like J2EE for Enterprise Applications, J2ME for Mobile Applications.
Here are some features of Java:
- Object Oriented:
Java manages to strike a balance between the purist’s “everything is an object” paradigm and the pragmatist’s “stay out of my way” model. The object model in Java is simple and easy to extend. In Java, everything is an Object.
- Platform independent:
The Java code is not platform specific compiled, rather it is platform independent byte code. The same code interpreted by virtual Machine (JVM) and work on all computers whichever platform it is being run.
Java was designed to be easy for the professional programmer to learn and use effectively.
Java enables to develop virus-free, authenticated system. Public-key Encryption is used for authentication.
- Architectural-neutral: Java goal is “write once; run anywhere, any time, forever.” Java compiler generates a byte code that can run on any system and any platform with the help of JVM.
Being architectural-neutral and having no implementation dependent aspects of the specification makes Java portable.
Because Java is a strictly typed language, it checks your code at compile time before run time. It supports to eliminate the errors in compile time.
Java was designed to meet the real-world requirement of creating interactive, networked programs. Java supports multithreaded programming, which allows you to write programs that do many things simultaneously
Java enables the creation of cross-platform programs by compiling into an intermediate representation called Java byte-code. This code can be executed on
any system that implements the Java Virtual Machine.
- High Performance:
With the use of Just-In-Time compilers, Java enables high performance.
Java supports for the distributed environment of the internet. Java also supports Remote Method Invocation (RMI). This feature enables a program to
invoke methods across a network.
Java programs carry with them substantial amounts of run-time type information that is used to verify and resolve accesses to objects at run time. This makes it possible to dynamically link code in a safe and expedient manner.
public static void main(String args)
System.out.println("Hello! How r u?");
Where Java is used?
Some area where we use Java are:
- Desktop Applications (like media player, antivirus etc.)
- Web Applications
- Enterprise Applications (like core bnking etc)
- Embedded System
- Smart Card
- Games etc.