Enter your email address:

Delivered by FeedBurner

Features of java

By // No comments:

Features of java

 

1. Simple, easy and familiar:

 

Java is easy to learn and familiar because java syntax is just like c.

 

It is simple because:

 

a) it does not use header files.

 

b) eliminated the use of pointer and operator overloading.

 


 

2. Platform Independent:

 

Write once, run anywhere (WORA).



 

3.Object-Oriented:

 

Java is Object oriented throughout language- that mean no coding outside of

 

class definitions, including main().

 

Basic concepts of OOPs are:

 

  • Object
  • Class
  • Inheritance
  • Polymorphism
  • Abstraction
  • Encapsulation
4. Robust:

 


Robust means inbuilt capabilities to handle errors/exceptions.


 

Java is robust because of following:

 

1. Built-in Exception handling.

 

2. Strong type checking i.e. all data must be declared an explicit type.

 

3. Local variables must be initialized.

 

4. Automatic garbage collection.

 

5. First checks the reliability of the code before Execution etc.

 

5. Secure:

 

Java is secure because it provides:

 

1. access restrictions with the help of access modifiers (public, private etc).

 

2. byte codes verification – checks classes after loading.

 

Class loader – confines objects to unique namespaces.

 

Bytecode Verifier- checks the code fragments for illegal code that can violate access right to objects.

 

Security manager – determines what resources a class can access such as reading and writing to the local disk.

 

6. Distributed:

 

java provides the network facility. i.e. programs can be access remotely from any machine on the network rather than writing program on the local machine. HTTP and FTP protocols are developed in java.

7. Compiled and interpreted:

 

Java code is translated into byte code after compilation and the byte code is interpreted by JVM (Java Virtual Machine). This two steps process allows for extensive code checking and also increase security.
8. Portable:

 

Means able to be easily carried or moved. Write once, run anywhere (WORA) feature makes it portable.
9. Architecture-Neutral:

 

Java code is translated into byte code after compilation which is independent of any computer architecture, it needs only JVM (Java Virtual Machine) to execute.
10. High performance:

 

JVM can execute byte codes (highly optimized) very fast with the help of Just in time (JIT) compilation technique.
11. Re-usability of code:

 

Java provides the code reusability With the Help of Inheritance.
12. Multithreading:

 

Java provides multitasking facility with the help of lightweight processes called threads.
13. Dynamic:

 

Java have the capability of linking dynamic new classes, methods and objects.

Java History

By // No comments:

Green Project


 

January, 1991
Project named "Green Project" was started. Green project's goal was to support home consumer devices. Consumer devices to be made intelliegent so they can interact with each other and they can be controlled via a remote. Bill Joy, James Gosling, Mike Sheradin, Patrick Naughton were the key members of the Green Project.

 
Oak

 

         February, 1991


 

James Gosling was the software lead and architect. His initial objective was to find a suitable language for Green Project. He chose C++ and wrote extensions wherever there were gaps. Then the features were not sufficient for the project needs and creating a new language was the next move. He started working on the new language and named it as "Oak", there was an Oak tree outside his office window.




 
Hardware Prototype

 
April, 1991
SPARCstation 10's architect Ed Frank joins Green project to lead the hardware work. Objective was to develop a hardware prototype and demonstrate the capabilities. The project was code named star-seven (*7). Team members of star 7 project were Craig Forrest, Al Frazier, Ed Frank, James Gosling, Patrick Naughton, Joe Parlang, Jon Payne, Mike Sheridan, Chris Warth.

 

 

Interpreter

June, 1991

James Gosling works on Oak interpreter

 

1992

Java Named

March, 1992
Oak was name of another already existing language and so a new name was chosen and it was Java. It was inspired by coffee.


 
Star-seven Prototype

September, 1992
Star-seven (*7) working prototype with a GUI was completed and demonstrated. At this time Green project has created a new language, an operating system, a hardware platform and an interface. Below is the demo of PDA like star 7 prototype and demo was given by James Gosling himself.


 
FirstPerson

November, 1992
Green project was incorporated as a separate entity with a name FirstPerson as a subsidiary of Sun Microsystems.

 
1993

TV Set-top Box

February, 1993
FirstPerson attempts to bag order from Time-Warner for a TV set-top box interactive system. By this time, green project was not proving successful and Time-Warner order was also lost. From home consumer electronics the focus was shifted to TV and set-top box related platform.

 
Application Development for Platform

September, 1993
Arthur Van Hoff joins the team to work on application development for the interactive platform.

 
1994

Liveoak

June, 1994
Even TV interactive market was not fruitful for FirstPerson and it was closed. Employees absorbed into Sun. Liveoak project started, aim was to create an operating system by using Oak.

 
Web Browser Era

July, 1994
Patrick Naughton creates a web browser and uses Java in it. Liveoak project modified to make Oak for Internet.

 
HotJava

September, 1994
Naughton and Jonatha Payne starts working on a Java based web browser named HotJava and this project gets wider acceptance from the management and progresses.

 
Java Compiler

October, 1994
Java compiler was written by Van Hoff using Java, previously it was written in C by James Gosling.

 
1995

Formal Launch

May, 1995
At SunWorld conference Java and HotJava was formally introduced by Sun.

 
Netscape Support

June, 1995
In a major breakthrough, Netscape supports Java in its browser.

 
HotJava

September, 1995
First Java developer conference held by Sun at New York.

 
Oracle Support

October, 1995
Oracle includes a Java compatible browser in its launch of WWW WebSystem.

 
Microsoft Support

December, 1995
In a first signal for wider industry acceptance, Microsoft supports Java in IE.

 

 

1996

1.0

January, 1996
JDK 1.0 released.

 
1997

1.1

February, 1997
JDK 1.1 released. Key features were JDBC, RMI, Inner Classes.

 
1998

1.2

December, 1998
JDK 1.2 code named Playgroud released. This version is mostly called Java 2 and was the most popular release which witnessed major conversions. Major features were collections framework, JIT compiler, policy tool, Java foundation classes, Java 2D class libraries, major enhancement in JDBC.

 
2000

1.3

May, 2000
JDK 1.3 code named Kestrel released.

 
2002

1.4

February, 2002
J2SE 1.4 code named Merlin released. Major features were XML Processing, Java Print, Logging, JDBC 3.0, Assertions, Regular Expressions

 


 


 

2004


 

5.0

September, 2004
J2SE 5.0 code named Tiger released. Major features were Generics, Autoboxing, Annotations, Instrumentation.

 
2006

Java/Jdk (Half) Open Sourced

November, 2006
Java was announced to be open source and it was controversial. The way the license was designed contradicted the general open source term. May be we should call it half-sourced.

 
6.0

December, 2006
Java SE 6 code named Mustang released. Major features were Scripting Language Support, JDBC 4.0, Java Compiler API, Integrated Web Services.

 
2010

Oracle Buys Sun

January, 2010
Oracle buys Sun and its products. Now Java is in the hands of Oracle.

 
No Support for Java in Future – Apple

October, 2010
Steve Jobs says, Apple will not support Java in future.

 
2011

7.0

July, 2011
Java SE 7 code named Dolphin released. This release was done after 5 long years and only this release has taken this much duration. Major features were dynamic language support, Java nio Package, multiple exception handling, try with resources and lots of minor enhancements.

 
2014

8

18 March, 2014
Java SE 8 was released. This is one of the major release in Java in its history. Major features were Lambda Expressions, Pipelines and Streams, Date and Time API , Default Methods, Type Annotations, Nashhorn JavaScript Engine, Concurrent Accumulators, Parallel operations, PermGen Space Removed, TLS SNI.

Programming language overview

By // No comments:
Programming language overview

As we are going to start learning Java, which is a programming language. So, let us have a brief look at programming language first.

What is language?
A way of communication is known as language. e.g. Hindi, English etc.

What is a Program?
A set of instructions which is used to perform a specific task.

What is a Programming Language?  
An artificial language used to write programs which can be translated into machine language and executed by computer with the help of some special software.

What is a Platform?  
Dictionary meaning: A raised level surface on which things can stand.In programming: Hardware or software on which a program can execute/run.
e.g. – c, c++, Java etc.
Powered by Blogger.

Blog Archive