Monday, July 5, 2010

Java Evolution1990 sun Microsytems decide to develop a special software.1991 Announced a new language named Oak1992 Demonstrate the application of this new language to control the home appliances1993 Came up with the idea of developing web based applets1994 Hot java browser was developed to run and locate the applet program1995 Oak was renamed as Java due to legal snags.

  • Features of Java
    Compiled and interpreted
  • Platform independent and portable
  • Object oriented
  • Robust and secure
  • Distributed
  • Familiar simple and small
  • Multithreaded and interactive
  • High performance
  • Dynamic and extensible
    Compiled and Interpreted Java compiler translates source code into byte code. Byte codes are not machine instruction and therefore in the second stage java interpreter generates machine code that can be directly executed by the machine that is running the java program.
    Platform Independent and portableJava programs can be easily moved form one computer system to another anywhere and any time. Changes and upgrades in operating system, processor and system resources will not force any changes in java programs. Java ensures portability in two ways byte code that can be implemented on any machine which is machine independent.
Object OrientedJava is object oriented programming language. All programming codes and data to be reside within the classes.

Robust and SecureJava is robust language because of the following two reasons It is designed as a garbage collected language relieving the programmers virtually all memory management problems. Java also incorporates the concept of exception handling which captures series errors and eliminates any risk of crashing the systems.

DistributedJava is designed as a distributed language for creating applications on networks.
Simple Small and familiarJava is a small and simple language. Many features of C and C++ that are either redundant or sources of unreliable code are not part of java.

MultithreadedMultithreaded means handling multiple tasks simultaneously. Java supports multithreaded programs.High performanceJava performance is impressive for an interpreted language mainly due to the use of intermediate byte codes

Dynamic and ExtensibleJava is dynamic language. java is capable of dynamically linking in new class libraries methods and objects. Java can also determine the type of class through a query, making it possible to dynamically link.

java differs from C language and C++ language.?Java language was designed after C and C++ languages it differs from C and C ++ language in many ways. Java does not incorporate a
number of features in C and C++.

Java and C language

JAVA does not include the C unique statement such as keywords goto sizeof type def etc.
Java does not contain the data type ,struct, union and enum
Java does not support type modifier keywords such as auto ,extern ,register,signed and unsigned values
Java does not support an explicit pointer type.
Java does not support preprocessor #
Java and C++
Java does not support operator overloading
Java does not support the template concept
Java does not support multiple inheritance of a classes and does not support the implementation of global variables
Java replace the destructor function with finalize() There is not header files in java
Java does not support scope resolution operator and inline function

No comments:

Post a Comment