2008-2009 1aMichael Fung, CS&E, The Chinese University of HK1 Hands-on Introduction to JAVA Introduction to 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

Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
1 Programming & Programming Languages Overview l Machine operations and machine language. l Example of machine language. l Different types of processor.
For more Lectures and Notes Visit
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
Introduction to Programming with Java, for Beginners Machine vs. Programming Language Intro to Java Edit-Compile-Run Program Process.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#1) By Dr. Syed Noman.
Course: Introduction to Computers
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.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
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 Tonga Institute of Higher Education.
P51UST: Unix and Software Tools Unix and Software Tools (P51UST) Compilers, Interpreters and Debuggers Ruibin Bai (Room AB326) Division of Computer Science.
Introduction to Java CSIS 3701: Advanced Object Oriented Programming.
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
Fall AboutMichael Fung, CS&E, The Chinese University of HK1 CSC1030 Hands-on Introduction to JAVA Dept of Computer Science and Engineering The.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
High-level Languages.
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.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Computers,
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Programs,
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Introduction to Java CSIS 3701: Advanced Object Oriented Programming.
CS1Q Computer Systems Lecture 14 Simon Gay. Lecture 14CS1Q Computer Systems - Simon Gay2 Where we are Global computing: the Internet Networks and distributed.
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
INTRODUCTION TO JAVA AND ANDROID. Slide 2 Our Ecosystem Java Eclipse Android SDK.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Chapter 1: Introduction to Programs, and Java 1. Objectives To review programs (§ ). To understand the relationship between Java and the World Wide.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette August 25, 2004 Last update:
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
10/8: Software What is software? –Types of software System software: Operating systems Applications Creating software –Evolution of software development.
CT1513 Introduction To java © A.AlOsaimi.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette August 27, 2004 Last update:
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. CSC 110 – INTRO TO COMPUTING - PROGRAMMING Overview of Programming.
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
1 Introduction to Java. 2 * 10% Assignments/ class participation * 10% Pop Quizzes * 05% Attendance * 25% Mid Term * 50% Final Term.
The Big Picture. My Story  Wrote great programs  Didn’t understand how they worked.
Computer Programming Week 1: The Basics of CP 1 st semester 2012 School of Information Technology Website:
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Computers,
Introduction to JAVA Programming
Java Programming, 3e Concepts and Techniques Chapter 1 Section 56 – An Introduction to Java.
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.
Computer Systems Nat 5 Computing Science
Hardware and Software Hardware refers to the physical devices of the computer system e.g. monitor, keyboard, printer, RAM etc. Software is a set of programs,
Chapter 1 Introduction to Computers, Programs, and Java
Computer Systems Nat 5 Computing Science
Hands-on Introduction to JAVA
COMPUTER SOFT WARE Software is a set of electronic instructions that tells the computer how to do certain tasks. A set of instructions is often called.
Introduction CSC 111.
Java History, Editions, Version Features
Object-Oriented Programming Using Java
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:

aMichael Fung, CS&E, The Chinese University of HK1 Hands-on Introduction to JAVA Introduction to Java

aMichael Fung, CS&E, The Chinese University of HK2 Hard and Soft  Physical devices comprising a computer system are referred to as hardware.  Computer programs that run on a computer are referred to as software.

aMichael Fung, CS&E, The Chinese University of HK3 Software: Program and Data  A computer program is merely a collection of instructions to process data.  This course is focused on how to design and produce quality software, i.e. writing complete and precise computer programs to control computers.

aMichael Fung, CS&E, The Chinese University of HK4 What is Data in Computer?  ICQ/ message, web page  Movie, image, song  Teaching time table, Grade Point Average  ICQ/Phone/credit card number  Joy-pad button status, weapon list in Diablo II  Text document  Program  Basically anything in computer manageable form!

aMichael Fung, CS&E, The Chinese University of HK5 Compiler / Interpreter  Still remember the Pros & Cons of writing High-level & Low-level language?  Translators do the translation task for us Program Written in High-level Language e.g. Pascal, C Executable Program in Low-level Language e.g. Intel x86 code Compiler/Interpreter

aMichael Fung, CS&E, The Chinese University of HK6 Really Cross Platform?! Basic Program [hello.bas] Macintosh Pentium 4SGI Octane Sun UltraSparc … Translate

aMichael Fung, CS&E, The Chinese University of HK7 Pitfalls  Store and use different compiled versions  Availability of compiler(s) is a must  Compiler compatibility problem  Re-compile all versions after an update  How about a new machine/ computer architecture?

aMichael Fung, CS&E, The Chinese University of HK8 Java? Widely-used in corporations!

aMichael Fung, CS&E, The Chinese University of HK9 Java?  Web-based applications  Enterprise usage  Home usage  Mobile usage  Set-top box, e.g. cable TV ...

aMichael Fung, CS&E, The Chinese University of HK10 Java Compilation Model Java Program [hello.java] Compile Java Byte Code [hello.class] Java Compiler We do this once

aMichael Fung, CS&E, The Chinese University of HK11 Java Compilation Model Macintosh Pentium 4 SGI Octane Sun UltraSparc native code Java Byte Code [hello.class] Translate Java Virtual Machine (JVM) Someone do this for us

aMichael Fung, CS&E, The Chinese University of HK12 Java Compilation Model Java Program [hello.java] Macintosh Pentium 4 SGI Octane Sun UltraSparc native code Compile Java Byte Code [hello.class] Translate Java Compiler Java Virtual Machine (JVM) The whole grand picture

aMichael Fung, CS&E, The Chinese University of HK13 Scenario Explained  Now, each native speaker has an in-house translator who understands Java Byte Code and speaks the corresponding native language  We, as a foreigner, only need to prepare our instruction in Java Byte Code  However, Java Byte Code is still hard for human, so we learn the Java Language

aMichael Fung, CS&E, The Chinese University of HK14 Portability: 海納百川、有容乃大  Java is an Object-Oriented Programming Language, supporting –standalone text applications –standalone graphical applications –client-side web development (applet) –server-side web development (servlet, JSP) –mobile applications (J2ME, MIDP, games, etc.) –embedded applications (Java card, set-top box)

aMichael Fung, CS&E, The Chinese University of HK15 Summary  Java is compiled to byte code and can be run on any platform that supports a Java Virtual Machine. [portable]  Java Platform is available in Standard Edition (SE), Enterprise Edition (EE), or Micro Edition (ME).  NetBeans is a graphical IDE bundled with Java for developing projects in Java.