got ? Research Project – April 1998 Hang Xia, Mark Wang, Richard S. Chang Updated: R Norman, August 1999.

Slides:



Advertisements
Similar presentations
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
Advertisements

1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
In Review JAVA C++ GUIs - Windows Webopedia.com.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Lab Information Security Using Java (Review) Lab#0 Omaima Al-Matrafi.
MC697 Object-Oriented Programming Using Java. In this class, we will cover: How the class will be structured Difference between object-oriented programming.
Lab#1 (14/3/1431h) Introduction To java programming cs425
Java Applet & JavaScript SNU OOPSLA Lab. October 2005.
Client Side Programming Using Java Applet Outcomes: You will be expected to know: – Java Applets and HTML file; –bytecode and platform independent programs;
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Introduction to Java Kiyeol Ryu Java Programming Language.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
Active X Microsoft’s Answer to Dynamic Content Reference: Using Active X by Brian Farrar QUE
For more Lectures and Notes Visit
1 Chapter 3 Programs and Packages. 2 Java Virtual Machine (JVM) Java programs execute on the JVM. The JVM is a virtual rather than a physical machine,
Java Server Team 8. Overview What is a Java Server? History Architecture Advantages Disadvantages Current Technologies Conclusion.
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
1-1 Copyright (c) 1999 N. Afshartous Introduction to Java™
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
Session-02. Objective In this session you will learn : What is Class Loader ? What is Byte Code Verifier? JIT & JAVA API Features of Java Java Environment.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Getting Started What is Java? A programming language –Fully buzzword-compliant: A simple, object oriented, distributed, interpreted, robust, secure,
JavaScript Demo Presented by … Jaisingh Sumit jain Sudhindra Taran Deep arora.
1 CSC 551: Web Programming Spring 2004 Java Overview  Design goals & features  platform independence, portable, secure, simple, object-oriented, … 
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
Chapter 1 Coding Introduction.
4.1 JavaScript Introduction
Applets & Servlets.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Slides © Marty Hall, book © Sun Microsystems Press 1 Including Files & Applets in JSP Documents Core Servlets & JSP book:
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
JAVA APPLETS By: Ms. Humaira Siddiqui. Java and the Internet Java is considered to be a language well suited to be used in the internet. In contrast with.
Why Java? A brief introduction to Java and its features Prepared by Mithat Konar.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
Object Oriented Programming Examples: C++, Java Advantages: 1. reusibility of code 2. ability to adapt (extend) previously written code.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
1 CSC Computer Education (P) Ltd. DESIGNED BY K PRAKASH,
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Java and its Evolution. Contents Java Introduction Java Features How Java Differs from other OO languages Java and the World Wide Web Java Environment.
CT1513 Introduction To java © A.AlOsaimi.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Java -- A very Hot Object- Oriented Language Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of.
1 Applets are small applications that are accessed on an Internet server, transported over the internet, automatically installed and run as a part of web.
Unit-1 Introduction to Java
CSI 3125, Preliminaries, page 1 Applet. CSI 3125, Preliminaries, page 2 Applet An applet is a Java program that runs in a Web browser. An applet can be.
1 Introduction Read D&D Sec 1.8; Sec 1.13 THE Java tutorial -
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introduction to JAVA Programming
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Java Server Pages Can web pages be created specially for each user?
Applications Active Web Documents Active Web Documents.
Object Oriented Programming in
Chapter 1 Introduction to Computers, Programs, and Java
(Computer fundamental Lab)
Introducing Java.
G6DICP - Lecture 27 Java Applets.
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
Presentation transcript:

got ? Research Project – April 1998 Hang Xia, Mark Wang, Richard S. Chang Updated: R Norman, August 1999

4 Why is Java so Hot? – because of the NETWORK!! 4 Why Java? –“Write Once, Use Anywhere”

Java Virtual Machine Java App/Servlet & JavaScript Java Language Agenda

Java Virtual Machine

Java Virtual Machine 4 What is the JVM? –A Java Interpreter –Software, not hardware –Converts bytecode into machine code 4 Why JVM is important? –Platform-Independent

Java Development and Java Runtime Environment (JRE)

Java Development Kit (JDK) 4 A development environment for writing –Java Applets & Servlets –Java Applications 4 JDK contains –Java Core Classes –Java Source Files –Java Tools (compiler, Interpreter, appletviewer, debugger, etc.) –Java Documentation and Demos

Java Applet Java Servlet JavaScript

What is a Java Applet? 4 A Java program that can be included in an HTML page.  An applet tag is used in the HTML file to identify the source of the applet code, which resides on the server. 4 Example applet tag in HTML file:

How a Java Applet works 4 When we use a Java-compatible browser to view a Web page which contains a Java applet, the applet’s code is transferred to our system and executed by the browser. 4 Java-Compatible Browsers: HotJava, Netscape Navigator, Internet Explorer, etc.

Why a Java Applet? ADVANTAGES: 4 Less load on the server 4 More user interaction (Applet Vs. CGI) 4 Arbitrary graphics 4 Arbitrary data types

Java Applets Vs. Java Applications 4 Java Application: Standalone Java programs that can be run by using just the Java interpreter. 4 Java Applet: Run and displayed inside a Web page with Java-enabled Web browser.

Embedding Applet in HTML <APPLET CODEBASE = codebaseURL ARCHIVE = archiveList CODE = appletFile...or... OBJECT = serializedApplet ALT = alternateText NAME = appletInstanceName WIDTH = pixels HEIGHT = pixels ALIGN = alignment VSPACE = pixels HSPACE = pixels >... alternateHTML ( Applet Tag )

What is JavaScript? JavaScript is a cross-platform, object-based scripting language for client and server applications. 4 Untyped language 4 Purely interpreted language

Is JavaScript Simplified Java? NO

JavaScript Vs. Java 4 JavaScript -- Interpreted (not compiled) by client. Code integrated with and embedded in HTML. 4 Java -- Compiled bytecodes downloaded from server, executed on client. Applets distinct from HTML (accessed from HTML pages).

Embedding JavaScript in HTML 4 Explicit Way JavaScript statements … 4 Implicit Way …

Java Language

Java Language 4 Syntactically similar to C++ 4 Semantically different –Strong and statically typed –Single inheritance plus an interface mechanism –Run-time type information 4 Automatic storage management: –No pointers –Garbage collection 4 Security/safety

Advantages of Java 4 Combine many programming mechanisms –Object oriented language –Strongly and statically typed –Automatic storage management: garbage collection –Run-time type information –Safety 4 Faster build cycle (prototyping) –Dynamic linking

Advantages of Java (cont.) 4 Platform independence –The ability of write code once and use it anywhere –The ultimate in portability –Compiled code can move around a network 4 Java is “Open” –Documentation and source code available –Not tied down to a single vendor (i.e. Sun or Microsoft)

Disadvantages of Java 4 Implementations have traditionally been interpreted –Execute slower than compiled languages –Typically in the order of 10x slower than native code 4 “Write Once, Run Anywhere” Implementation challenges 4 Is Microsoft playing????

Build Cycle

Build Cycle (cont.)

JIT Compilation 4 “Just-in-time” compilation: –Convert Java bytecodes to native code as they are executed 4 Total execution time = compilation time + run time

Questi ns ?