Internet and Java Application: 1. Background
Internet and Java Application: 1. Background
MCA-501(N2)
Course Overview
Introduction
1. Background
Objectives
give a nontechnical overview of Java
Contents
1. Java, etc.
2. Java's Advantages
3. Java's Disadvantages
4. Some History
5. Types of Java Code
6. Java Safety
7. Core Libraries
8. Notes on J2SE Installation
Features of Java
Machine Independent
Secure
Simple
Object-Oriented
Robust
Architecture-Neutral
Portable
Network-Savvy
Interpreted and High Performance
Multithreaded
Distributed
Dynamic
Language features
simple
object-oriented
network-savvy
extensive libraries for coping with TCP/IP protocols like HTTP & FTP
Java applications can access remote URL's the same as local files
secure
portable
high-performance
faster than traditional interpretation since byte code is "close" to native code
than still somewhat slower than a compiled language (e.g., C++)
multi-threaded
JDK Editions
Java Standard Edition (J2SE)
J2SE can be used to develop client-side standalone
applications or applets.
Java Enterprise Edition (J2EE)
J2EE can be used to develop server-side appli. such as
Java servlets
Java Server Pages.
Java Micro Edition (J2ME)
J2ME can be used to develop applications for mobile
devices such as cell phones.
the same
thing
continued
continued
JSDK
stands for "Java Software Development Kit
JDK is the old name for JDSK
don't be surprised to also see J2SDK
or Java SDK
continued
Features of Java
Machine Independent
Secure
Simple
Object-Oriented
Robust
Architecture-Neutral
Portable
Network-Savvy
Interpreted and High Performance
Multithreaded
Distributed
Dynamic
Language features
simple
object-oriented
network-savvy
extensive libraries for coping with TCP/IP protocols like HTTP & FTP
Java applications can access remote URL's the same as local files
secure
portable
high-performance
faster than traditional interpretation since byte code is "close" to native code
than still somewhat slower than a compiled language (e.g., C++)
multi-threaded
2. Javas Advantages
Productivity
object orientation
many standard libraries (packages)
continued
GUI features
mostly located in the Swing and Abstract
Windowing Toolkit (AWT) packages
Multimedia
2D and 3D graphics, imaging, animations,
audio, video, etc.
continued
Network support
communication with other machines/apps
variety and standards:
sockets, RMI, CORBA
Multithreading / concurrency
can run several threads at once
continued
J2SE is free
continued
continued
Its new!
~30 years since C++ introduced
3. Javas Disadvantages
Java/J2SE is still being developed
many changes between versions
continued
Embedded Systems
Sun Microsystems (Javas inventor) sees this
as a major future market for Java
J2ME (Java 2 Micro Edition) is a cut-down
version of Java
J2ME is the main programming environment
for mobile devices
continued
Lots to learn
Java language (small) and Java libraries
(very, very large)
continued
4. Some History
In 1991, Sun Microsystems set up a
research project to develop a language for pr
ogramming intelligent consumer electronics
e.g. video recorders, TVs, toasters
continued
continued
1. Java applications
continued
2. Java applets
they run in a Web browser
they are attached to Web pages, so can be
downloaded easily from anywhere
applets have access to browser features
6. Java Safety
6.1. Java Bytecodes
6.2. Applet advantage/disadvantage
6.3. The Java Virtual Machine
6.4. JVM Restrictions upon Applets
6.5. Relaxing Security
javac (Mac)
Java code
(.java file)
Java bytecode
(.class file)
javac (UNIX)
Java runtime
(UNIX)
applet
JVM
Web Browser
Client Computer
download
Web page
and applet
applet
Web Server
application
JVM
Client Computer
7. Core Libraries
Java runtime
standard I/O, networking, applets, basic
windowing, data structures, internationalizatio
n, maths, etc.
continued
Security
digital signatures, message digests
JDBC
database connectivity
Java RMI
remote method invocation
JavaBeans
a software component library
short for
"program files"
continued
java -version