Docsity

The Java Programming Handbook: Key Features and Best Practices, Study notes of Java Programming

Partial preview of the text

Download The Java Programming Handbook: Key Features and Best Practices and more Study notes Java Programming in PDF only on Docsity!

FEATURES

OF JAVA

Features of JAVA

2.Interpreted

▪ Java uses 2 stage system , as it uses both compiler & interpreter for its program execution.

▪ Firstly, Compiler converts program code(source code) into byte code which is then converted to machine code(class file) to any machine using Interpreter.

▪ The machine code thus generated can be executed on any system on which it is being executed.

3.Architectural Neutral(Platform Independent)

▪ Java programs can run on any platform , ie.they can run on different CPU and on different operating systems.

▪ Because of the byte code produced by the java Compiler can run on any machine which has Java Runtime Environment(JRE).

4.Object oriented language

▪ Java is an object oriented language as everything in java is an object.

▪ The objects & classes contain the program code and data.

▪ The java object model is easily extensible and classes can be used anywhere in a program in the form of packages.

6.Distributed

▪ Java is platform independent , ie.suitable for developing application for network.

▪ It can handle TCP/IP protocols and hence, applications developed in java can access remote objects on the internet like any objects on a local system.

7.Multithreaded

▪ Java supports multithreaded programming, which allows us to write a program that can perform more than one task simultaneously.

▪ User need not to wait for one program to finish one task, before starting the next task.

9.Dynamic

▪ It is dynamic in nature, ie.java program can link to new class libraries, objects, methods etc.. at the runtime.

▪ Java languages also provides the facility to include the functions of other languages like C & CPP. They are referred as ‘ native methods ’. These methods are also linked dynamically at runtime.