Introduction of JAVA
Introduction of JAVA
What is Java?
• Java is a high level programming language and also known as
platform because of its JRE (java runtime environment)
Brief History of Java.
• Write once, run anywhere (WORA) – that means java program can
run anywhere and on any platform. When java code is compiled it is
converted into byte code. Now only this byte code is needed to run
using JVM, no need of source code and recompilation.
During Compile time
• After writing our first program, we compile them.
• Java is easy to learn and familiar because java syntax is just like c++.
• It is simple because:
a) it does not use header files.
b) eliminated the use of pointer and operator overloading.
2. Platform Independent:
Write once, run anywhere (WORA).
• Java code is translated into byte code after compilation and the byte
code is interpreted by JVM (Java Virtual Machine). This two steps
process allows for extensive code checking and also increase security.
8. Portable:
• JVM can execute byte codes (highly optimized) very fast with the
help of Just in time (JIT) compilation technique.
11. Re-usability of code:
• Java have the capability of linking dynamic new classes, methods and
objects.