0% found this document useful (0 votes)
9 views21 pages

Javafeatures

java features

Uploaded by

Kongu B K Riot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views21 pages

Javafeatures

java features

Uploaded by

Kongu B K Riot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Features of Java

1
Features of Java
applications

Sun Micro Systems officially


describes Java with the following
features
• Compiled and Interpreted
• Platform Independent and Portable
• Object Oriented
• Robust and Secure
• Distributed

2
Features of Java
Contd..
applications

• Simple, Small and Familiar


• Multithreaded and Interactive
• High Performance
• Dynamic and Extensible

3
Compiled and Interpreted

• Usually a computer language is either


compiled or interpreted
• Java combines both these approaches,
thus making Java a two stage system
• First Java compiler translates source code
into byte code instructions
• Byte codes are not machine instructions

4
Contd..

Compiled and Interpreted

• In the second stage Java interpreter


generates machine code

• That can be directly executed by the


machine

Fig. 2.1 Compiled and Interpreted

5
Platform Independent and
Portable
• The most significant feature of Java is its
portability

• Java programs can be easily moved from


one computer system to another ,
anywhere and at anytime

6
Platform Independent and
Portable Contd..

• Changes and upgrades in


• Operating systems

• Processors

• System resources

will not force any changes in Java


programs

7
Platform Independent and
Portable Contd..

Fig. 2.2 Once compiled, Java class file can be run on any platform

8
Object Oriented
• Java is a true object oriented language
• Almost everything in Java is an object
• All programs code and data reside within
objects and classes
• Java comes with an extensive set of
classes arranged in packages

9
Robust and Secure
• Java is a robust language

• It provides many safeguards to ensure


reliable code

• It has strict compile time and runtime for


data types

10
Contd..
Robust and Secure

• It is designed as a garbage collected


language

• Java also provides concept of exception


handling which identifies errors and
eliminates

11
Contd..
Robust and Secure

• Security becomes an important issue for a


language that is used for programming on
internet
• Threat of viruses and abuse of resources
• Java systems not only verify all memory
access, but also ensure that no viruses are
communicated with an applet

12
Contd..
Robust and Secure

• The absence of pointers in Java ensures


that programs cannot gain access to
memory location without proper
initialization

13
Distributed
• Java is designed as a distributed language
for creating applications on networks

• It has the ability to share both data and


programs

14
Contd..
Distributed

• Java applications can open and access

remote object as easily as they can do in

a local system

• Enables multiple programmers at

multiple locations work together on a

single project
15
Simple, Small and
Familiar
• Java is small and simple language. Many
features of C and C++ are not part of Java
eg. : Java does not provide
• Pointers

• Preprocessors header file

• goto statements

• Operator overloading

• Multiple inheritance

16
Contd..
Simple, Small and Familiar

• Familiarity is another feature of Java

• It is modeled on C and C++ languages

• Java is a simplified version of C++

17
Multithreaded and Interactive

• Multithreaded means handling


multiple tasks simultaneously
• Java supports multithreaded
programs
• Need not wait for the application to
finish one task before beginning
another
• Greatly improves the interactive
18
High Performance

• Java performance is impressive for an


interpreted language
• Due to the use of intermediate byte code
• Java architecture is also designed to
reduce overheads during runtime
• The incorporation of multithreading
enhances the overall execution speed of
Java programs

19
Dynamic and Extensible

• Java is a dynamic language


• Java is capable of dynamically linking
new
• Class libraries
• Methods
• Objects
• Java programs supports functions written
in other languages such as C and C++
• These functions are known as “native
methods”

20
Contd..
Dynamic and Extensible

• This facility enables the programmers to


use the efficient available in these
languages

• Native methods are dynamically linked at


runtime

21

You might also like