What is Java? Explain Java Features.
- Java is a programming language that :-
- Is exclusively object oriented.
- Has full GUI support.
- Has full network support.
- Is platform independent.
- Executes stand-alone or "on-demand" in web browser as applets.
Features of Java :
1) Simple
2) Secure
3) Portable
4) Object - Oriented
5) Robust
6) Multithreaded
7) Architecture - natural
8) Interpreted
9) High performance
10) Distributed
11) Dynamic
(1) Simple :
- Java was designed to be easy for the professional programmer to learn and use effectivity.
- If you already understand the basic concept of Object Oriented Programming , learning java will be even easier.
(2) Security :
- Security is the benefit of Java.
- Java system not only verifies all memory access but also ensure that no viruses are communicated with an applet.
(3) Portable :
- The most significant contribution of java over other language is its portability.
- Java programs can be easily moved from one computer system to another.
- Java ensures portability in two ways :
(1) Java compiler generates byte code instruction that can be implemented on any machine.
(2) The size of the primitive data types is machine independent.
(4) Object - Oriented :
- Java is a true Object Oriented Language.
- All program code and data reside within object and classes.
- The object model in java is simple and easy to extend.
(5) Robust(healthy , strong) :
- The ability to create robust programs was given a high priority in the design of java.
- To given reliability , java has strict compile time and run-time checking for codes.
- To better understand how java is robust , consider two main reasons for program failure :
1) Memory management mistakes
2) Mishandled exceptional conditions
(6) Multithreaded :
- Java was designed to meet the real-world requirement of creating interactive , networked programs.
- Java supports multithreaded programming.
- Which allows you to write programs that do many things simultaneously.
(7) Architecture-Natural :
- A central issue of java programmers was that code longevity and portability.
- Operating system upgrades , and changes in core system resources can AI combine to make a program malfunction.
- The java designer made several hard decisions in the java language.
- The java virtual machine in an attempt to alter this situation.
- Their goal was "Write Once, Run Anywhere , Any Time, forever".
(8) Interpreted :
- A computer language is either compiled or interpreted.
- Java combines these approaches thus making java a two-stage system.
- Java compiler translates source code into byte code instructions.
- Byte codes are not machine instructions.
- So java interpreter generates machine code.
- It can be directly executed by the machine that is running the java program.
- Java is both a compiled and an interpreted language.
(9) High Performance :
- Java performance is impressive for an interpreted language.
- Mainly due to the use of intermediate byte code.
(10) Distributed :
- Java is designed for the distributed environment of the internet , because it handles TCP/IP protocols.
- Java also supports Remote Method Invocation(RMI).
- This feature enables a program to invoke methods across a network.
(11) Dynamic :
- Java is capable of dynamically linking in new class libraries , methods and object.
- Java can also determine the type of class through a query , making it possible to either dynamically link or abort the program.
Comments
Post a Comment