of 27
7/28/2019 javafeatures
1/27
1
Basics and Features of Java
7/28/2019 javafeatures
2/27
2
Objectives
On completion of this period, you would be able to
know
The features of Java Applets and Applications
7/28/2019 javafeatures
3/27
3
Recap
What is an applet?
Differentiate Java with C++
Why Java is important to internet?
7/28/2019 javafeatures
4/27
4
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
7/28/2019 javafeatures
5/27
5
Simple, Small and Familiar
Multithreaded and Interactive
High Performance
Dynamic and Extensible
Features of Java applicationsContd..
7/28/2019 javafeatures
6/27
6
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
7/28/2019 javafeatures
7/277
Compiled and Interpreted In the second stage Java interpreter generates
machine code
That can be directly executed by the machine
Contd..
Fig. 2.1 Compiled and Interpreted
7/28/2019 javafeatures
8/278
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
7/28/2019 javafeatures
9/279
Changes and upgrades in
Operating systems
Processors
System resources
will not force any changes in Java programs
Platform Independent and Portable Contd..
7/28/2019 javafeatures
10/2710
Platform Independent and Portable Contd..
Fig. 2.2 Once compiled, Java class file can be run on any platform
7/28/2019 javafeatures
11/2711
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
7/28/2019 javafeatures
12/2712
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
7/28/2019 javafeatures
13/2713
It is designed as a garbage collected language
Java also provides concept of exception handling
which identifies errors and eliminates
Robust and SecureContd..
7/28/2019 javafeatures
14/27
14
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 communicatedwith an applet
Robust and SecureContd..
7/28/2019 javafeatures
15/27
15
The absence of pointers in Java ensures that
programs cannot gain access to memory location
without proper initialization
Robust and SecureContd..
7/28/2019 javafeatures
16/27
16
Distributed
Java is designed as a distributed language for
creating applications on networks
It has the ability to share both data and programs
7/28/2019 javafeatures
17/27
17
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
DistributedContd..
7/28/2019 javafeatures
18/27
18
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
7/28/2019 javafeatures
19/27
19
Familiarity is another feature of Java
It is modeled on C and C++ languages
Java is a simplified version of C++
Simple, Small and FamiliarContd..
7/28/2019 javafeatures
20/27
20
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
performance of graphical applications
7/28/2019 javafeatures
21/27
21
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 theoverall execution speed of Java programs
7/28/2019 javafeatures
22/27
22
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
7/28/2019 javafeatures
23/27
23
This facility enables the programmers to use the
efficient available in these languages
Native methods are dynamically linked at runtime
Dynamic and ExtensibleContd..
7/28/2019 javafeatures
24/27
24
Summary
Features of Java Applications
Features of Java Applets
7/28/2019 javafeatures
25/27
25
Quiz
1.Usually a computer language is either ______
a) Compiledb) Compiled and Interpreted
c) Compiled or Interpreted
d) Interpreted
7/28/2019 javafeatures
26/27
26
Frequently Asked Questions
Explain the features of Java Applications and Java
Applets
7/28/2019 javafeatures
27/27
swingsStrutsjdbchibernate
homejava previous question papersOCT/NOV-2012 QUESTION PAPER
April / May 2012 c-09October/ November-2011 c-09
April/ May 2011 c-09April/ May 2011 c-05
27
http://raj-swings.blogspot.in/http://raj-struts.blogspot.in/http://rajjdbc.blogspot.in/http://raj-hibernate.blogspot.in/http://improvejava.blogspot.in/2011/04/aprilmay-2011.html%20(c-05)http://improvejava.blogspot.in/2012/11/c-09-octnov-2012.htmlhttp://improvejava.blogspot.in/2012/11/c-09-octnov-2012.htmlhttp://improvejava.blogspot.in/2012/04/aprilmay-2012-c-09.htmlhttp://improvejava.blogspot.in/2011/10/octobernovember-2011.htmlhttp://improvejava.blogspot.in/2013/02/aprilmay-2011.html%20(c-09)http://improvejava.blogspot.in/2011/04/aprilmay-2011.html%20(c-05)http://improvejava.blogspot.in/2011/04/aprilmay-2011.html%20(c-05)http://improvejava.blogspot.in/2011/04/aprilmay-2011.html%20(c-05)http://improvejava.blogspot.in/2011/04/aprilmay-2011.html%20(c-05)http://improvejava.blogspot.in/2013/02/aprilmay-2011.html%20(c-09)http://improvejava.blogspot.in/2013/02/aprilmay-2011.html%20(c-09)http://improvejava.blogspot.in/2013/02/aprilmay-2011.html%20(c-09)http://improvejava.blogspot.in/2011/10/octobernovember-2011.htmlhttp://improvejava.blogspot.in/2011/10/octobernovember-2011.htmlhttp://improvejava.blogspot.in/2011/10/octobernovember-2011.htmlhttp://improvejava.blogspot.in/2011/10/octobernovember-2011.htmlhttp://improvejava.blogspot.in/2011/10/octobernovember-2011.htmlhttp://improvejava.blogspot.in/2012/04/aprilmay-2012-c-09.htmlhttp://improvejava.blogspot.in/2012/11/c-09-octnov-2012.htmlhttp://improvejava.blogspot.in/2012/11/c-09-octnov-2012.htmlhttp://improvejava.blogspot.in/2012/11/c-09-octnov-2012.htmlhttp://improvejava.blogspot.in/2012/11/c-09-octnov-2012.htmlhttp://improvejava.blogspot.in/2012/11/c-09-octnov-2012.htmlhttp://improvejava.blogspot.in/2012/11/c-09-octnov-2012.htmlhttp://improvejava.blogspot.in/2012/11/c-09-octnov-2012.htmlhttp://improvejava.blogspot.in/2011/04/aprilmay-2011.html%20(c-05)http://raj-hibernate.blogspot.in/http://rajjdbc.blogspot.in/http://raj-struts.blogspot.in/http://raj-swings.blogspot.in/