Wednesday, February 12, 2014

Features of Java

Lets look at the features of Java that makes it different from other programming languages.

1. Simple

2. Platform independent

3. Secured

4. Robust

5. Multithread

5. Distributed

6. Object oriented

7. Portable

8. Dynamic

------------------------------------------------------------------------------------------------------------

Java is Simple when compared syntactically with c++, with some minor changes.

------------------------------------------------------------------------------------------------------------

Java is platform independent, as we have already seen in our previous post about platform now let us find more details about java as a platform.

Java is software platform which has it's own run time environment and API and it run's on top of hardware platform.

Now moving on to the key point of platform independent, when the java code is compiled by the Javac compiler it is converted to the class file and later this class file is converted to bytecode by JVM. Please note that the bytecode that is generated is platform independent, in the sense this bytecode can be executed on any platform for example(windows,Linux, Solaris). This is the reason Java is platform independent.

This make Java unique

------------------------------------------------------------------------------------------------------------

Java is secured because programs are executed inside a virtual machine sandbox, as we know that java as its own run time this make its more secured.

In java there is no concept of pointers which makes it more secure.

Also they are 3 more features that make java secured which are Classloaders,bytecode verifier and security manager and this topics would be discussed in a separate post

------------------------------------------------------------------------------------------------------------

Robust means Strong, what make Java Robust, it lacks in pointers and security problems are avoided, it automatically performs garbage collection, Handling exceptions.

------------------------------------------------------------------------------------------------------------

Java is multithreaded, in the sense it performs multitask by sharing the same memory using threads.

------------------------------------------------------------------------------------------------------------

Java is used to create distributed application that allows to access file from different machine using internet.

---------------------------------------------------------------------------------------------------------

Java use object oriented methodology which make software development easy and maintainable, by following the simple rules like Encapsulation.Polymorphism,Inheritance,Abstraction

---------------------------------------------------------------------------------------------------------

Java is portable as we know that the bytecode is platform independent and thus can be executed on any platform

>>>Security
------------------------------------------------------------------------------------------------------------

Basic overview of Java

Welcome to my blog, this time I have created a blog about Java isnt that interesting? In this blog you find all the basic information, concepts, examples, useful link etc... which will help you to master Java. I have followed a very systematic approach with my posts, anybody who follows my posts on a daily basis would not miss on any of the concepts. So lets get started...
Before diving into the Ocean of Java and getting our hands dirty with coding, lets understands what is java and its purpose.

what is Java and how it came into existence?


Where is Java used?


------------------------------------------------------------------------------------------------------------
Java is a programming language and it is a platform. Definition seems to be very simple lets get deeper into it.
Programming language is used to write a set of instructions and later these instructions are converted to a machine code, once the computers interprets the machine code it execute these instructions and gives us the desired results.
What is a platform. A Platform provides a infrastructure for applications, so that these applications can be built and run. Platform provides a easy mode of designing applications with the existing platforms like Java.

History Of Java?

Java was originally founded by a small team of sun engineers called Green Team in 1991 and James Gosling was one among them. Green Team wanted to develop a language for digital devices such as set-top boxes, televisions etc, at the same time Internet technology also was growing very rapidly so they decided and used JAVA for internet programming.
Before naming this language they had many revision in the names(like OAK) and finally they decided with the name JAVA. Java is a small island in Indonesia which actually produced the first coffee and that's how it was named.
First Version of Java was release in 1995 and it was JDK 1.0, now the current latest version is Java SE 7
------------------------------------------------------------------------------------------------------------

What kind of Applications can be designed using Java?


1. Web Applications

An application that runs on the server side and generates dynamic pages are web application (example-websites).

2. Standalone Applications

These are the desktop application which needs to be installed on your system for functioning (example-media player).

3. Enterprise Applications

Banking application come in this category which require secured connection, load balancing.

4. Mobile Applications

Application that are created for mobile devices.
>>>Features
------------------------------------------------------------------------------------------------------------