Thursday 6 March 2014

Java Features



The main reason to develop a new language called Java ,was to offer solutions to those problems which are not possible to solve using existing languages(like using C ,C++),some of these problems were portability,reliability,distributional,compact etc.So there are some features of Java that make it popular in the market of general purpose stand-alone application development:-

  • Compiled and Interpreted Language:-We can search any language ,and it can be seen that a language it either compiled or interpreted.But Java is the combination of both,that is why Java is platform independent .Java code is first compiled (using compiler)and source code  is translated to byte code instructions .These byte code instructions are not machine independent,so they are interpreted (using interpreter) to machine code, that is directly executed by the machine ,on which java program is running.So java is both compiled and interpreted language.
  • Object Oriented Language:-Java is truly object oriented language ,in this everything is an Object ,everything is written the objects and classes(even main method is written in class that is not possible in C++ like language).Java has a extensive set of classes ,that are arranged in different packages.We can import (like we include in C++)them in our program and can use their functionality.
  • Platform Independent and Portable Language:-One of the reason Java is popular today is its feature of portability ,means Java programs can be moved from one computer to another computer any ware and any time , without any change in source code . Changes and up-gradations in the Operating Systems,in processors,in any other resources will not force any changes in the Java programs.That is why it is the first choice for software development.You may see the Applet programs running on your web browser when you open any website(advertisement or some popup) ,that are written in Java programming language ,and they are written only once ,when any person open the website that Applet programming run on the person's computer,what ever processor,operating systems he\she has.So java is platform independent and portable language.
  • Simple and Familiar Language :-Java code syntax has similarity with other languages like C ,C++.So the C++ developers can easy learn Java programming language and can start developing java programs.But there are some features which of C++ which are not supported by Java ,that are:-
    •  Pointer are not supported by Java.
    • Pre-processor  header files are not supported by Java.
    • goto statement is not supported by Java.
    • Operator overloading is  not supported by Java.multiple inheritance is not supported by java etc 
          So if your are a C++ developer and going to start with Java then you should keep in mind the                      difference in features and other thing which are not common in C++ and Java.

  • Robust and Secure Language:-Java is a robust language .It provide so many protection in code generation and execution to ensure the reliability.It has strict compile and run time checking of data types.Java has internal garbage collection mechanism that relieve the programmer from all memory management problems.Java has implementation to check all the exceptions and errors that may be risky while execution and it show all the errors and exception warning before execution.
               When it comes the point of secure language ,then it is clear cut answer is that Java does not have           pointer so the viruses and threats can not get access to the memory locations where data reside ,so              Java is a secure language.
  • Multitheaded Supported Language:-Java language support multithreaded  programming ,means you can create different threads for different tasks in your Java applications which will give better experience to end your in terms of faster results ,so your application will have better productivity ,if your will use Java mulithredded programming.But keep in mind that you should have complete knowledge about how to use multithreading  in your application.
  • Native method support:-Java support native methods means your can use the C++ written functions in Java programs ,this helps the programmers to use the already written code in the application development.
  • Ease of Development:-Java  has many features like Generics,Auto-boxing,Un-boxing,Annotations, Static import of packages etc ,these features reduce the overhead of the programmers and make the development easy.These also reduce the time of coding and application development can be go in next phase like testing phase .
  • Monitoring and Manageability APIs:-Java has a large no. of APIs one of them in JVM Monitoring and Management APIs  like JMX to monitor and manage Java applications.There are other tools like jconsole, jps,  jstats etc,these tools facilitate the management and monitoring tasks.

1 comment:

  1. I am interested to buy your website if please contact for sell this is my website link here visit and click on contact or servers page you got my mobile number Features of Java

    ReplyDelete