Java, Feature , Origin, and Comparison between C++ and Java



Features Of Java

The invention of Java is mainly  attributed to two key features. Portability and security However, major factor in its feature are the following:

a) It is simple
b) It is portable
c) It is architure neutral
d) It has high performance
e) It is dynamic
f) It is secure
g) It is object oriented
h) It is multi-threaded
i) It can be interpreted on any system
j) It is robust
k) It is designed for distributed enviroment of the Internet

It also provides a mechanism is the form of digital certificates to establiish the identify of a user .These digital certificates are like electronic passports.Several security tools are also available in Java that enables creating and storing crypto-graphics  keys and digital certificates.

C++ And Origin Of Java

The birth of most modern programming language "Java" is due to evolution of several earlier programming languages into modern programming language C and C++. In fact , it is C++ that has set stage for Java.





Althrough Java is linked with online enviroment of Internet , yet basically it is a programming language . Programs in Java are written in Java script which is case sensitive language . AWT (Abstract Window Toolkit) provides support for applets .It contains a variety of classes and methods to creates and manage  windows. Swing is  a set of classes that is more powerful and flexible than AWT.

Comparison in Java and C++





  Java  -

  •  Java is true object-oriented language.
  • Java does not support operator overloading.
  • It support labels with loops and statement blocks.
  • Java does not have template  classes as in C++
  • Java compiled into byte code for the Java Virtual  Machine. The ource code is independent on operating system.




C++ -
  • C++ is basically C with Object-oriented extension.
  • C++ supports operator overloading.
  • It supports goto  statement. 
  • C++ has template classes
  • Source code can be written to be plateform independent and written to take advantages of plateform . C++ typically coompiled into machine code.
In designing a computer language ,  the trade off such as follwing as kept in mind :

  1. Easy to use
  2. Extensibility
  3. Efficiency
  4. Safety 
  5. Power
  6. Rigidity
Earlier , Languages had limitations of one kind or the other . For example- Fortran was good fr scientific applcations but not suitable for system code. Similarly BASIC was easy to understand but was neither powerful or suitable for large programs.

Developments in information technology Internet and world wide wed further propelled evolution of newer computer language .Since C and C++ could be compiled for a specific target , the answer came in the form of creation of Java in 1995. It was a portable , a platform independent language suitable for producing of a code that could run on variety of CPUs under different enviroments. Thus , Java is related to C++.It derives its syntex from C and a large number of characters from C and C++.



On next post I will tell you about Enviroment of Java, Java Development kit and much more .

Subscribe for more updates.





Comments