Featured

    Featured Posts

Features of Java

 

Features of Java

§  Features of a language are nothing but the set of services or facilities provided by the language vendors to the industry programmers. Some important features are;

  1. Simple
  2. Platform Independent
  3. Architectural Neutral
  4. Portable
  5. Multi-Threading
  6. Distributed
  7. Networked
  8. Robust
  9. Dynamic
  10. Secured
  11. High Performance
  12. Interpreted
  13. Object Oriented

1. Simple

It is simple because of the following factors:

  • It is free from pointer due to this execution time of application is improve. [Whenever we write a Java program without pointers then internally it is converted into the equivalent pointer program].
  • It has Rich set of API (application protocol interface).
  • It have Garbage Collector which is always used to collect un-Referenced (unused) Memory location for improving performance of a Java program [Garbage collector is the system JAVA program which runs in the background along with regular JAVA program to collect unreferenced memory locations by running at periodical interval of times for improving performance of JAVA applications..
  • It contains user friendly syntax for developing any applications.

2. Platform Independent

§  Programming languages are present in the industry before 90 are platform dependent languages.

§  In those languages if any application is developed targeting O.S who cannot run application on other operating Systems because once after the compiling the source code of the program it will generate machine code on which compilation is done.

§  Machine code is prepared targeting to the O.S because O.S is responsible for an execution of a machine code so machine code is prepared for one OS cannot be executed on other operating system.

CPP(WINDOWS)

   Source Code èCompileèMachine Code (.exe)

  

 Source Code èCompileèMachine Code (.exe)

·         In the above case as the source code is compile on the windows.

·         Machine code is prepared targeting O.S so that machine code can run only on windows O.S but not on any other.


§  Any application can setting on the top of the O.S is dependent on the O.S

§  The languages like C, Cpp are treated as platform dependent languages since these languages are taking various amount of memory spaces on various operating systems [the operating system dos understands everything in the form of its native format called Mozart (MZ) whereas the operating system Unix understands everything in its negative format called embedded linking format (elf).

§  When we write a C or CPP program on dos operating and if we try to transfer that program to Unix operating system, we are unable to execute since the format of these operating systems are different and more over the C, CPP software does not contain any special programs which converts one format of one operating system to another format of other operating system].


 Platform Independency

§  We are providing platform independency both under java and .NET languages

§  In case of these languages whenever we compiled the source code it converts into intermediate code(semi-finished) and this intermediate code can be carried and executed on any machine provided there is a availability a special software which converted intermediate code into machine code according to the machine where the execution take place.

Java Lang(WINDOWS)


Source CodeèCompileèByte CodeèJVMèMachine Code

§  In above code when the source code of java program is compiled it will generate byte 
   code.
§  This byte code will be generated into Machine code with the help of JVM(java virtual 
    machine)
§  A program or technology is said to be platform independent if and only if which can 
   run on all available operating systems with respect to its development and compilation. (Platform represents O.S).

§  Java is a platform independent programming language, because when you install JDK 
  software on your system then automatically JVM are install on your system. For every 
  operating system separate JVM is available which is capable to read .class file or byte 
  code. When we compile your java code then .class file is generated by javac compiler 
  these code are readable by JVM  and every operating system have its own JVM  so 
  JVM  is platform dependent but due to JVM  java language is become platform 
  independent.
author

Author Name

Author Description!

Get Free Email Updates to your Inbox!

Post a Comment

www.CodeNirvana.in

Powered by Blogger.

About

Site Links

Popular Posts

Translate

Total Pageviews