Sunday 8 May 2011

Java Development kit

                       


          The Java Development Kit comes with a collection of tools that are used for developing and running Java programs .They includes: 
  • appletviewer (for viewing java applets)
  • javac (Java compiler)
  • javaa (Java interpreter) 
  • javap (Java disassembler)
  • javah (for C header files)
  • javadoc (for creating HTML documents)
  • jdb (Java debugger)  


Fig : Process of building and running java application program.

Difference Between JAVA and C++:

                 Java is true Object-Oriented language while C++ is basically C with Object-Oriented extension.
  • Java doesn’t support Operator Overloading.
  • Java doesn’t have Template classes as in C++.
  • Java doesn’t support multiple inheritance of classes.
  • Java doesn’t support global variables.
  • Java doesn’t use pointer .
  • There are no header files in Java.

         
    NOTEjava doesn't support multiple inheritance but we can implement it through a special feature called "Interface".

Difference Between JAVA and C:

                   JAVA is an Object-Oriented language and has mechanism to define classes and objects.
  •   JAVA does not include the C unique statement keywords sizeof and typedef.
  •   JAVA does not contain the data types struct and union.
  •   JAVA does not define the type modifiers keywords auto, extern, register, signed and unsigned.
  • JAVA does not support an explicit pointer type.
  •   JAVA does not have preprocessor and therefore  #define, #include and #ifdef statements can’t be used.
  •   JAVA adds features for Object-Oriented Programming.