03 Java Features
03 Java Features
Java Source Code is compiled and interpreted Source code: It is the form of Java program Java programs run on Java Virtual Machine (JVM) Three step process from source code to executable
Source code written in text editor Java compiler translates into bytecode (binary program) Java interpreter executes the bytecode line by line in JVM
3
JAVA Environment
Features of Java (Through features you can also define the java)
Simple Object Oriented Distributed Interpreted Robust Secure Architecture Neutral Portable High Performance Multithreaded and Dynamic programming language.
5
Java is Simple
Java was developed by taking the best points from other programming languages,
It manly borrows the C and C++ syntax
Polymorphism Persistence [object (data) survives in the program execution time] Delegation
7
JAVA is Interpreted
The Java Compiler generates bytecode for a JVM (Java Virtual Machine) A Java Interpreter is needed to execute the bytecode
Java Virtual Machine, it converts bytecode into machine language
Intermediate form between High Level Language code to machine code Java Program coded by the Programmer
9
10
JAVA is Secure
The Java language has built-in capabilities to ensure that violations of security do not occur. The features of bytecode and its interpretation, prevent unintentional or intentional sabotage of compiled programs.
Java uses the public key encryption system to allow the java applications to transmit over the internet in the secure encrypted form.
Apart from all these, java security has been considered in many levels.
11
JAVA is Portable
The bytecodes can be run on virtual machines (VM) above different operating systems :
MacOS, Windows XP/Vista/2007, Solaris, OS2, Linux, Unix, etc
JAVA is High-Performance
Java language supports many high-performance features such as multithreading, just-in-time compiling, and native code usage.
Multithreading concept allows the java programming language to do more than one task in a program Some times interpreted code are proper for particular hardware (processor and its instruction set), for this JIT compilers were introduced. JIT compilers (available with latest JVM) again compiles the interpreted code at run time and gives almost native code (only made for specific type of hardware according to its instruction-set ) speed.
13
JAVA is Dynamic
Java provides dynamic linking of the binary code at runtime. Objects are ready to available on the internet: While executing the java program the user can get the required files dynamically from a local drive or from a computer thousands of miles away from the user just by connecting with the Internet.
14
Thanks
15