Let's learn java programming language with easy steps. This Java tutorial provides you complete knowledge about java technology.

Wednesday 16 November 2016

Features of Java


There are many features of java.
Java Features
  • Simple
  • Object-oriented
  • Platform-Independent
  • Secured
  • Multi-threaded
  • Architecture Neutral
  • Compiled and Interpreted
  • High performance
  • Distributed
  • Dynamic
  • Robust
  • Portable 
  • Networked

  • Simple:  Java is very simple language because the syntax is based on c++ so easier for programmer learn it after c++. There are no explicit pointers in java which reduce the complexity of java language. There is automatic garbage collection in java which destroys all the unused or unreferenced objects automatically, which is performed by the JVM (Java Virtual Machine). Java has Rich set of API (Application Protocol Interface).


       The basic concept of oops is:
  • Object
  • Class
  • Polymorphism
  • Inheritance
  • Abstraction
  • Encapsulation

  • Platform-Independent: Java is platform-independent language because java program can be run on the different-2 operating system. Java code can be compiled by the compiler and converted into bytecode. this bytecode is platform independent.

  • Secured: Java is secure because there is no explicit pointer in java and second is java programs run in their own environment called jvm. Java is more secure language compare to other languages because in this language all code is covered in bytecode after compilation which is not readable by any person. 

  • Multi-threaded: Java supports multi-threaded concept so in java, we can easily handle multiple requests simultaneously.  

  • Architecture-neutral: Java is not tied to a specific machine or operating system architecture. Machine-independent i.e java is independent of hardware. Architectural neutral means the programs were written on one platform and can run on any other platform without having to rewrite and recompile the java program. In other words, it follows 'write once run anywhere' approach. Java programs are compiled into the byte-code format which does not depend on any machine architecture but can be easily translated into a specific machine by a Java virtual machine for that machine.

  • Compiled and Interpreted: Java supports cross-platform code through the use of code java bytecode, Bytecode can be interpreted on any platform by jvm. Java is both compiled and Interpreted.

  • High Performance: Bytecodes are highly optimized, JVM can execute them much faster. Java supports multi-threading concept because by using multi-threading you can handle multiple tasks at the same time or execute multiple tasks simultaneously which will improve the performance. 
 
  • Distributed: Java was designed with the distributed environment. Java can be transmitted, run over the internet.

  • Dynamic: Java programs carry with them a substantial amount of run-time type information that is used to verify and resolve accesses to objects at run-time. 

  • Robust: Robust simply means strong. Java uses strong memory management. Java encourages error-free programming by being strictly typed and performing run-time checks. There is automatic garbage collection in java which is performed by jvm.

  • Portable: Java is portable because of this byte-code, we may carry the java bytecode to any platform.

  • Networked: Java mainly designed for web-based applications. J2EE or JEE is used to developing web-based or networked based applications.

Read More:



Note: In above features, there are many concepts we will learn in later like garbage collection, oops, multi-threading etc.

Share:

1 comment:

Facebook Page Likes

Follow javatutorial95 on twitter

Popular Posts

Translate