Professional Documents
Culture Documents
Javas Lineage
Java is related to C+.
Java is a direct descendent of C.
Javas object-oriented features were
influenced by C++
Java was developed by James Gosling
etc. at Sun Mircosystems in 1991.
It was called oak and was renamed
as Java.
2
Java Applets
Java supports two types of
programs: applications and applets
An application: It is a program that
runs on our PC under windows XP.
An applet: It is a tiny Java program,
dynamically downloaded across the
network, like music, video clip.
4
Security
Without Java, Once you are downloading
an executable program, there is a risk of
viral infection.
If it is written in Java using Javacompatible browser, it is pretty safe.
Java also provides a firewall between a
networked application and our PC to safeguard information such as credit card
number, bank account balance.
5
Java Overview
10
Installing StandardSDK
Java 2
11
Installation -
12
13
JDK components
appletviewer.exe
java.exe
javac.exe
javadoc.exe
javap.exe
jdb.exe
applet viewer
intepreter
compiler
document generator
decompiler
debugger
14
15
16
Second Program
18
Applet (1)
20
21
Explanation to Applet
Prepare a java
program called third
In the HTML, specify
the class of the
program (third)
Use appletviewer or IE
explorer to see the
result
22
23
24
Javadoc.exe
Javadoc is a tool shipped with JDK
that generates HTML documentation
from the comments in the class
source files.
With the aid of Javadoc we can
simplify documentation of our code
and make it a regular habit.
25
Javap decompiler
26
Javap - explanation
The javap
command
disassembles a
class file.
Its output depends
on the options
used. If no options
are used, javap
prints out the
package.
27
Jdb Debugger
28
Jdb - explanation
The Java Debugger, jdb, is a simple
command-line debugger for Java
classes.
It provides inspection and debugging
of a local or remote Java Virtual
Machine.
Jdb class format
29
Jdb help
30
Summary
Java is related to C+.
Java is a direct descendent of C.
Javas object-oriented features were
influenced by C++
It is ideal for client [windows]-server
[Linux] platform.
31