Objectives
On completion of this period, you would be able to know The features of Java Applets and Applications
Recap
What is an applet? Differentiate Java with C++ Why Java is important to internet?
Sun Micro Systems officially describes Java with the following features
Compiled and Interpreted
Contd..
Contd..
Contd..
Operating systems
Processors
System resources
will not force any changes in Java programs
Contd..
Fig. 2.2 Once compiled, Java class file can be run on any platform
10
Object Oriented
Java is a true object oriented language
11
12
Contd..
It is designed as a garbage collected language Java also provides concept of exception handling which identifies errors and eliminates
13
Contd..
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
14
Contd..
15
Distributed
Java is designed as a distributed language for creating applications on networks
16
Contd..
Distributed
Java applications can open and access remote
object as easily as they can do in a local system
17
18
Contd..
19
Need not wait for the application to finish one task before beginning another Greatly improves the interactive performance of graphical applications
20
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
21
Java programs supports functions written in other languages such as C and C++
These functions are known as native methods
22
Contd..
This facility enables the programmers to use the efficient available in these languages Native methods are dynamically linked at runtime
23
Summary
Features of Java Applications Features of Java Applets
24
Quiz
1.Usually a computer language is either ______
a) b) c) d) Compiled Compiled and Interpreted Compiled or Interpreted Interpreted
25
26
swings Struts jdbc hibernate home java previous question papers OCT/NOV-2012 QUESTION PAPER April / May 2012 c-09 October/ November-2011 c-09 April/ May 2011 c-09 April/ May 2011 c-05
27