Subject Code: 4639302 Subject Name: Programming in Java Unit 1 - Introduction
Subject Code: 4639302 Subject Name: Programming in Java Unit 1 - Introduction
Byte codes are not for any specific CPU. Instead, they are designed
to be interpreted by a JVM (Java Virtual Machine). Platform
independence comes from the fact that the same byte codes be
executed by any JVM on any platform.
Object Oriented
Almost everything in java is an object. All program code and data reside
within the objects and classes. Java comes with extensive set of classes,
arranged in packages that we can use in our program by inheritance.
Robust and Secure
Java is robust language. It provides many safeguards to ensure reliable
code. It has strict compile time and run time checking for data types.
Security becomes an important issue for a language that used for
programming on internet. Java systems not only verify all memory access
but also ensure that no viruses are communicated with an applet. The
absence of pointers in java ensures that programs cannot gain access to
memory locations without proper authorization.
9
Distributed
Java is designed as distributed language for creating applications
on network. It has the ability to share both data and programs.
Java applications can open and access remote objects on internet
as easily as they can do with local system. This enables multiple
programmers at multiple remote locations to collaborate and work
together on a single network.
10
High performance
Java performance is impressive for an interpreted language, mainly due
to the use of intermediate byte code. Java architecture is also designed
to reduce overheads during runtime. Furthermore, the incorporation of
multithreading enhances the overall execution speed of java programs.
Dynamic and extensible
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 either dynamically link or abort the program,
depending on the response. Java program supports functions written in
other languages such as C and C++. These functions are called native
methods. Native methods are linked dynamically at runtime.
12