A Programming Language for

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Introduction to JAVA Vijayan Sugumaran School of Business Administration Oakland University Rochester, MI
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;
Principles of Object-Oriented Software Development The language Java.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
JAVA ENVIRONMENT JDK, API, JVM. JAVA ENVIRONMENT  Java environment includes development tools and many classes and methods. Java Environment JDK (Java.
Developing User Interfaces (DUI) Chris North cs3724: HCI.
Getting Started What is Java? A programming language –Fully buzzword-compliant: A simple, object oriented, distributed, interpreted, robust, secure,
1 CSC 551: Web Programming Spring 2004 Java Overview  Design goals & features  platform independence, portable, secure, simple, object-oriented, … 
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.
EE2E1. JAVA Programming Introduction Dr. Mike Spann
Introduction to Java CSIS 3701: Advanced Object Oriented Programming.
Applets  The Applet Class  The HTML Tag F Passing Parameters to Applets.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 16: Java Applets & AWT Fundamentals of Web Programming.
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
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.
Learn about the types of Graphics that are available Develop a basic Graphics applet Develop a basic Graphics application Review the Java API and use.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
Java Applets. 2 Introduction to Java Applet Programs  Applications are stand alone programs executed with Java interpreter executed with Java interpreter.
POS 406 Java Technology And Beginning Java Code
1 Programming Fundamentals AITI-GP. 2 Introduction to Programming.
CIS3023: Programming Fundamentals for CIS Majors II Summer 2010 Ganesh Viswanathan Introduction to Applets Course Lecture Slides 29 th July 2010.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
CS 3131 Introduction to Programming in Java Rich Maclin Computer Science Department.
Introduction to Java Programming. Introduction Course Objectives Organization of the Book.
Java Applets. 2 Introduction to Java Applet Programs Applications are ___________________ programs –executed with Java interpreter Applet is a small program.
CSC 205 – Java Programming II Applet. Types of Java Programs Applets Applications Console applications Graphics applications Applications are stand-alone.
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 35 – Overview of Java Web Programming Webpage:
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
Applets Yong Choi School of Business CSU, Bakersfield.
Object Oriented Programming Examples: C++, Java Advantages: 1. reusibility of code 2. ability to adapt (extend) previously written code.
Intro to Applets. Applet Applets run within the Web browser environment Applets bring dynamic interaction and live animation to an otherwise static HTML.
Lecture 1. Introduction to Programming and Java MIT- AITI 2003.
1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.
Overview of Java CSCI 392 Day One. Running C code vs Java code C Source Code C Compiler Object File (machine code) Library Files Linker Executable File.
Java -- A very Hot Object- Oriented Language Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of.
Your name CSCI/CMPE 3326 Object-Oriented Programming in Java Dongchul Kim Department of Computer Science University of Texas – Pan American 1.Applet.
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.
Java Computer Industry Lab. 1 Programming Java Java Basics Incheon Paik.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Features of JAVA PLATFORM INDEPENDENT LANGUAGE JAVA RUNTIME ENVIRONMENT (JRE) JAVA VIRTUAL MACHINE (JVM) JAVA APP BYTE CODE JAVA RUNTIME ENVIRONMENT.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Applications Active Web Documents Active Web Documents.
A Programming Language for Web-based Computing with Graphics
Introduction to.
What is Java? A programming language Fully buzzword-compliant:
Introduction to Java Dept. Business Computing University of Winnipeg
Distributed Computing, M. L. Liu
Getting Started ARCS Lab..
Distributed Computing, M. L. Liu
Java Applets.
CSC 551: Web Programming Spring 2004
CSC 551: Web Programming Spring 2004
F II 1. Background Objectives
Chap 1. Getting Started Objectives
G6DICP - Lecture 27 Java Applets.
A Programming Language for
A Brief History January 1996: first official release JDK 1.0
Presentation transcript:

A Programming Language for Java A Programming Language for Web-based Computing CSE 341 -- S. Tanimoto Java Introduction

Common Features of Lisp and Java: From Lisp to Java Common Features of Lisp and Java: -- Garbage-collected -- Support for Object-oriented programming -- Support for packages -- Compiles to intermediate code -- Intermediate code is then interpreted -- Built-in support for many data structures such as hash tables, vectors CSE 341 -- S. Tanimoto Java Introduction

From Lisp to Java (Cont.) Differences: Java supports client-side processing in Web via “Applets” Server Side Client Side HTTP GET/POST Browser Apache W.S. Lisp as CGI Web page HTTP GET Browser/JVM Applet Exec. Apache W.S. Java class files CSE 341 -- S. Tanimoto Java Introduction

From Lisp to Java (Cont.) More Differences: Java: More security considerations, because of its web orientation: compulsory “try” and “catch” error handling. Java: stronger typing of variables. Java: Standard graphics API’s: the AWT and Swing. CSE 341 -- S. Tanimoto Java Introduction

CSE 341 -- S. Tanimoto Java Introduction Influences on Java C, C++: syntax of arithmetic and boolean expressions, need for safe pointer operations. Smalltalk, C++, CLOS: Object orientation Lisp: garbage collection, bignums CSE 341 -- S. Tanimoto Java Introduction

CSE 341 -- S. Tanimoto Java Introduction Java’s Web Support Applets: Java virtual machine can run in a browser. Safe pointers avoid segmentation faults and other dangerous errors. Security manager provides that applets don’t perform I/O to client hard disk. Applets permitted only limited upload communication (to the originating server). Standard networking package is provided. CSE 341 -- S. Tanimoto Java Introduction

CSE 341 -- S. Tanimoto Java Introduction Java’s Graphics AWT: The Abstract Windowing Toolkit is a package providing standard classes for building GUIs. Support for decoding GIF and JPEG image formats is built in. Java has used two slightly different event models for user interaction: JDK 1.0 (old) and JDK 1.1 (new). Java2D is a more advanced imaging package that’s made to work with Java 2. CSE 341 -- S. Tanimoto Java Introduction

CSE 341 -- S. Tanimoto Java Introduction Java’s Threads Java programs can contain multiple threads of control. This can permit parallel processing. This can permit logical separation of the program into code for concurrent processes. Run-time scheduling of threads is not completely platform independent. CSE 341 -- S. Tanimoto Java Introduction

CSE 341 -- S. Tanimoto Java Introduction Example Application class MyFirstApplication { public static void main(String[] args) { System.out.println("Hello World"); } To compile on a Unix system, type: javac MyFirstApplication.java Then to run it, type: java MyFirstApplication CSE 341 -- S. Tanimoto Java Introduction

CSE 341 -- S. Tanimoto Java Introduction Example Applet import java.applet.Applet; import java.awt.Graphics; public class MyFirstApplet extends Applet { public void paint(Graphics g) { g.drawString("Hello world!", 50, 25); } To compile on a Unix system, type: javac MyFirstApplet.java Then to run it, embed a reference to it in a web page... CSE 341 -- S. Tanimoto Java Introduction

Web Page with Applet Tag <HTML><HEAD> <TITLE> A Simple Program </TITLE> </HEAD><BODY> <H1>So here is my first applet:<H2> <APPLET CODE=”MyFirstApplet.class” WIDTH=150 HEIGHT=25> </APPLET> </BODY></HTML> CSE 341 -- S. Tanimoto Java Introduction