Monday 11 May 2015

Features of Java

Features

Simple - Based upon C++ syntax,Avoided confusions like pointers,operator overloading and automatic garbage collection.

Object-Oriented  - It's an simple methodology for software development and maintainence
  • Object and class
Image result for oops concepts in java


Platform independent
Its an software based platform,contains run time environment (JRE) and (JDK) API



Secured
  • No explicit pointer
  • Programs run inside virtual machine

Robust
  • Robust simply means strong. 
  • Java uses strong memory management. 
  • Lack of pointers that avoids security problem. 
  • Automatic garbage collection in java. 
  • Exception handling and type checking mechanism in java. 
Architecture neutral
  • There is no implementation dependent features e.g. size of primitive types is set.
Portable
  • We may carry the java byte code to any platform.

Dynamic
  • Java is faster than traditional interpretation since byte code is "close" to native code still somewhat slower than a compiled language (e.g., C++).

Multi threaded

  • A thread is like a separate program, executing concurrently. 
  • We can write Java programs that deal with many tasks at once by defining multiple threads. 
  • Main advantage of multi-threading is that it shares the same memory. 
  • Threads are important for multi-media, Web applications etc

Distributed
  • RMI and EJB

No comments:

Post a Comment