1.02. - Intenet and Java
1.02. - Intenet and Java
Outline
• Internet and its Evolution
• Internet Tools
• Web and its Programming
• Java for Internet Programming
1
17/07/2019
2
17/07/2019
Usage of Internet
• Use of internet advertisement/elections/newspapers
• Information is public
• Network is the computer
• Intranets - internal TCP/IP nets
• PC accounts for 55% of total IT
• Applications tied to platform - API lock-in
Early Internet
• Early Internet supported only email .
• File Transfer Protocol development - ftp sites.
• Network News was added to the Internet.
• Archie - A program to canvass anonymous ftp sites and create a
database of what is available.
• Gopher- A menu-driven interface used to search for information.
• Archie and Gopher could answer questions only like ‘what FTP server
contains info about “xxxx”.
3
17/07/2019
4
17/07/2019
Internet Tools
• Browsers: A tool used to view documents on the WWW.
• Web Servers: Machines which run the HTTP-server Software that
respond to HTTP requests which it receives.
• Authoring Tools: Editors specially made for editing HTML documents.
• Filters: Tools to convert legacy documents to HTML format.
• Scripting: Languages used for scripting.
• WAIS: Wide Area Information Servers (WAIS) for indexing and doing full
text searches.
10
5
17/07/2019
11
HTTP
Information
The web server sends the hypermedia HTML documents to the client.
We end up seeing the document on our screen
12
HTML
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading.</h1>
<p>This is a paragraph.</p>
</body>
</html>
6
17/07/2019
13
14
Application
The Web
• Seeded by HTML from CERN
• Revolutionized by MOSAIC – a web browser
• Standardized, universal interface to data and
Graphical BROWSER
• Broadcast capability - publish once, reach
OS OS OS OS
millions
Application Application
7
17/07/2019
15
16
Java - An Introduction
• Java - The new programming language from Sun Microsystems (now
owned by Oracle Corporation) in 23 May 1995.
• Java - Allows anyone to publish a web page with Java code in it
• Java - CPU Independent language
• Created for consumer electronics
• Java - designed by James Arthur Gosling
• Oak -The predecessor of Java
8
17/07/2019
17
Java Glossary
Term Definition
Bytecode The instruction set for Java Virtual Machine, created from source files into bytecode
by the compiler
API Application Programming Interface is the way to expose a set of pre-defined classes
and interfaces to external clients to interact with them, without sharing the
implementation details
Autoboxing automatic conversion between the primitive types and their corresponding object
wrapper classes.
Garbage Collection The process by which the JVM automatically frees up unused memory
JAR Java Archive is the default Java packaging mechanism to aggregate multiple files into
one (similar to .zip)
18
Java Glossary
JDK JDK (Java SE Development Kit) Includes a complete JRE (Java Runtime Environment)
plus tools for developing, debugging, and monitoring Java applications. JDK is
required to build and run Java applications and applets.
JRE JRE stands for Java Runtime Environment which is used to provide an environment at
runtime. It is the cause of implementation of JVM. It contains a set of supporting
libraries in combination with core classes and various other files that are used by JVM
at runtime. JRE is a part of JDK (Java Development Toolkit) but can be downloaded
separately.
JVM The Java Virtual Machine is called JVM, is an abstract computing machine or virtual
machine interface that drives the java code.
JVM generates a .class (Bytecode) file, and that file can be run in any OS, but JVM
should have in OS because JVM is platform dependent.
9
17/07/2019
19
JVM Structure
20
10