Chapter1 Introduction to Java Overview of the Java What Is the Java Technology The Java Virtual Machine A First Application in Java A First Applet in Java.

Slides:



Advertisements
Similar presentations
1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
Advertisements

In Review JAVA C++ GUIs - Windows Webopedia.com.
The Life and Times of Andrew Bardee and Chris Cornelius Programming Languages Fall 2011.
IC211 Object Oriented Programming Overview of Java.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Principles of Object-Oriented Software Development The language Java.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
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,
Java program.
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.
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
Introduction to Java Programming CS 21a: Introduction to Computing I First Semester,
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
Java Workshop for Teachers May 6, 2005 A Brief Look at the Java Programming Language.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Java Beserkers Group 4. Start of Java Development began on June of 1991 by a group of computer scientist at the Sun Mircrosystems Company Development.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
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.
Introduction to Computers and Java Chapter 1.3. A Sip of Java: Outline History of the Java Language Applets A First Java Program Compiling a Java Program.
1 Part I : Chapter 01 Introduction to Java Programming.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Module Overview n Module Title: OO Programming n Module Code: MIT3446 n Module Value: 3.0 n Duration: 15 weeks n Class-Contact Hours: Lecture15 hrs n Lab/Tutor30hrs.
Programming Concept Chapter I Introduction to Java Programming.
Clement Allen, PhD Florida A&M University SUMMER 2006.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
Java Tutorial Ethan New York University.
Introduction to Java Programming. Introduction Course Objectives Organization of the Book.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
We will talking about story of JAVA language. By Kristsada Songpartom.
CT1513 Introduction To java © A.AlOsaimi.
Applied Computing Technology Laboratory QuickStart Java Learning to Program in Java Dr. Tom Way October 21, 2005.
Lecture 1. Introduction to Programming and Java MIT- AITI 2003.
A Look at Java. Categorize Java Which paradigm? Which paradigm? Scripting? Scripting? Declarative or procedural? Declarative or procedural? Which generation?
1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.
Java Basics 1 Brief History of Java and Overview of Langauge.
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.
1 The JAVA Language Object Oriented Technology Mithani Binjan M.
Introduction to Programming. The Programming Process Create/Edit Program Compile Program Execute Program Compile Errors?Run-Time Errors? Source Program.
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
What is Java? Object Oriented Programming Language Sun Microsystems “Write Once, Run Everywhere” Bytecode and Virtual Machine Java Platform (Java VM and.
introductory lecture on java programming
JAVA Ekapap Julnonyang When it was implemented? Developed by Sun Microsystems. The first public implementation was Java 1.0 in 1995 The language.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Introduction to Programming 1 1 2Introduction to Java.
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.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
Java™ 2 Platform Getting Started.
The Java Programming Language
What is Java? A programming language Fully buzzword-compliant:
Introduction Enosis Learning.
An Overview of Java.
Chapter 1 FOUNDATIONS OF JAVA
PROGRAMMING IN JAVA. INTRODUCTION TO JAVA  Java is a general purpose computer programming language that is concurrent, class-based, object- oriented.
Introduction Enosis Learning.
Getting Started ARCS Lab..
(Computer fundamental Lab)
Java History, Editions, Version Features
By Rajanikanth B Overview Of Java By Rajanikanth B
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:

Chapter1 Introduction to Java Overview of the Java What Is the Java Technology The Java Virtual Machine A First Application in Java A First Applet in Java A Basic Java Application Using OO Java Terminology and Technology Products CCE JMU China ZhangJM

Reference Thinking in Java (中、英版) The Java Tutorial Sun Microsystems Java™ Programming Language (中、英版) ( 作者: Ken Arnold 、 James Gosling 、 David Holmes) Java 程序设计教程 袁兆山等译 机械工业出版社 CCE JMU China ZhangJM

Overview of Java Past Today Future CCE JMU China ZhangJM

Originally named Oak Main team members: Bill Joy, Patrick Naughton, Mike Sheridan, James Gosling Original goal: use with home appliances In 1994, team realized Oak was perfect for Internet Announced in May of 1995 First non-beta release in 1996 Java technology is free The Origin of the Java Programming Language CCE JMU China ZhangJM

Java 的渗透力 CCE JMU China ZhangJM

Java belongs to the world CCE JMU China ZhangJM

Joining & Sharing CCE JMU China ZhangJM

What Is the Java Technology? Java technology is: A programming language A development environment An application environment A deployment environment It is used for developing both Applets and Applications CCE JMU China ZhangJM

Java Is A Programming Language CCE JMU China ZhangJM

Java Is A Platform CCE JMU China ZhangJM

Building a Better Language Object-oriented Distributed Multi-threading Security APIs (pre-written code) Easily portable to multiple platforms (Write Once, Run Anywhere™) CCE JMU China ZhangJM

Primary Goals of the Java Technology Provides an easy-to-use language by: Avoiding many pitfalls of other languages Being object-oriented Enabling users to create streamlined and clear code Provides an interpreted environment for: Improved speed of development Code portability CCE JMU China ZhangJM

Primary Goals of the Java Technology The following features fulfill these goals: The JVM Garbage collection Code security CCE JMU China ZhangJM

Java Programs Applets and Applications Application – Runs in the operating system Applet – Runs in a browser, does smaller tasks CCE JMU China ZhangJM

Basic Components of a Computer CCE JMU China ZhangJM

Applications must use same languages as operating and hardware CCE JMU China ZhangJM

Two Ways of Solving the Communication Problem Compiled - communicates with only one kind of computer Interpreted - communicates with any kind of computer CCE JMU China ZhangJM

How Applications Run

How Applets Run CCE JMU China ZhangJM

A First Application in Java //A First Application in Java public class HelloWorld{ public static void main(String[] args){ System.out.println("Hello World!"); } CCE JMU China ZhangJM

Run the Application HelloWorld CCE JMU China ZhangJM

A first Applet in Java // A first Applet in Java import javax.swing.JApplet; // 导入 Java API 的 JApplet 类 import java.awt.Graphics; // 导入 Java API 的 JGraphics 类 public class HelloWorldApplet extends JApplet { public void paint( Graphics g ) { g.drawString( "Hello World!", 25, 25 ); } 创建 HTML 文件,以将 HelloWorldApplet.java 编译所得 HelloWorldApplet.class 载入浏览器运行。 HelloWorldApplet.html 文件为: CCE JMU China ZhangJM

Run the applet HelloWorldApplet CCE JMU China ZhangJM

Run the applet HelloWorldApplet CCE JMU China ZhangJM

The Java Technology Products and Terminology

CCE JMU China ZhangJM

各章内容概述 CCE JMU China ZhangJM