Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005.

Slides:



Advertisements
Similar presentations
Foundations of Programming and Problem Solving Introduction.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Object Oriented Programming in Java George Mason University Fall 2011
Lecture 0 CSIS10A Overview. Welcome to CSIS10A (5 mins) – Typical format for class meetings New material first (monitors off, notebooks out) Practice.
Lab#1 (14/3/1431h) Introduction To java programming cs425
Introduction to Java The objectives of this chapter are: To describe the key aspects of Java To describe the Java software development kit (SDK) To explain.
OBJECT ORIENTED PROGRAMMING I LECTURE 1 GEORGE KOUTSOGIANNAKIS
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Introduction to Java.
Lecture 1: Overview of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed.
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Developing User Interfaces (DUI) Chris North cs3724: HCI.
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.
IB Computer Science II Paul Bui
Introduction to Java Tonga Institute of Higher Education.
Introducing Java.
Lecture 1 Introduction to Java MIT- AITI 2004 What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word.
CSC 111 Java Programming I. Java Programming: From Problem Analysis to Program Design, Second Edition  Instructor – Salwa Hamad Al-Jasser  Office.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
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.
Introduction to Programming Languages. Problem Solving in Programming.
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
CSE 1340 Class 3. Class 03 objectives State the difference between Machine Language vs. High Level Languages Discuss some characteristics of the Java.
Introduction to the Java Virtual Machine 井民全. JVM (Java Virtual Machine) the environment in which the java programs execute The specification define an.
Session One Introduction. Personal Introduction Role of programmers Robot Examination HUD & HID Uploading Code.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Lecture 1 Introduction to Java MIT-AITI Ethiopia 2004.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
Jaeki Song ISQS6337 JAVA Lecture 03 Introduction to Java -The First Java Application-
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
1 CSC204 – Programming I Lecture 2 Intro to OOP with Java.
POS 406 Java Technology And Beginning Java Code
Programming Concept Chapter I Introduction to Java Programming.
1 2. Program Construction in Java Programming Fundamentals.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
Object Oriented Programming Lecture 3. Introduction  In discussing Java, some items need to be clarified  The Java programming language  The Java virtual.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
1 CS210 Intermediate Computing with Data Structures (Java) Saaid Baraty S-3-90.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
CSC204 – Programming I Lecture 1 August 23, 2006.
Pre-Sessional Java Programming Lecture 1a Reyer Zwiggelaar
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Lecture 1. Introduction to Programming and Java MIT- AITI 2003.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.
1 Chapter 1 Programming Languages Evolution of Programming Languages To run a Java program: Java instructions need to be translated into an intermediate.
Introduction Mehdi Einali Advanced Programming in Java 1.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
What Do Computers Do? A computer system is
Introduction to Java Dept. Business Computing University of Winnipeg
Accelerated Introduction to Computer Science
IB Computer Science II Paul Bui
Chap 1. Getting Started Objectives
Chap 4. Programming Fundamentals
Computer Programming-1 CSC 111
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:

Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 2 Outline Survey Course Policies What is Java Why is Java Special The process of programming Plan of this course Getting started with Java Topics for next lecture

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 3 Survey

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 4 Course Policies Webpage: Lecture: M/W 12:30-2:15p.m. SNSQ 5129 Lab: M 02:30-04:20p.m. SNSQ 6110 Instructor: Jiang (Jen) Zheng Phone: Office: SNSQ 6501 O/H: M/W 10:00-11:30a.m. Text Book: Java By Dissection (Pohl and McDowell)

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 5 Course Polices: Totally 9 labs and 22 lectures. One midterm (06/15) and one final (07/ 27) No class on May 30 th and July 4 th Three to fours quizzes on class. Around 5 programming assignments. Grading: Midterm25% Final25% Quiz15% Assignment35% Total100%

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 6 What is Java? Computer Science is the study of algorithms and machines. Algorithms: instructions for human beings Program: instructions for computer/machines. Java is A high-level, object-oriented, interpreted, third generation programming language.

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 7 Why is Java special? Let you write a special program called applet. What is the advantage of applet? Traditional computer programs have far too much access to your system Java severely restricted what an applet can do. A Java applet can not Write to your hard disk without your permission Write to arbitrary addresses in memory

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 8 Why is Java special? Java is Object-Oriented Simpler, easier to read programs More efficient reuse of code Faster to market More robust, error-free code What is Object-Oriented? The primary mode of execution is interaction of objects with each other.

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 9 Why is Java special? Java is Platform Independent: the same.class file can be execute on any platform as long as the interpreter, Java Runtime Environment (JRE), is installed there.

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 10 Why is Java special? Java is Garbage Collected You don’t need to explicitly allocate and reallocate memory in Java. By knowing Java, you can take other courses easily, like CS445, CS1501, etc

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 11 The process of programming Understand the problem well Design the solution (algorithm) Consider alternatives Implementation Documentation Debugging Testing

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 12 Very Useful Links for Java Programmer Java APIs: Java Tutorial: javaPlace.net:

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 13 Plan of this course Plan to Cover Chapter Chapter 1-5: To learn the basics of Java language from Java implementation point of view Concept point of view Chapter 6-7: To learn the principals of Object- Oriented programming and to learn to program effectively in an Object-Oriented way.

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 14 Plan of this course Chapter 8-9:Graphical User Interfaces (GUI) and applet Chapter 10: Reading and Writing Files Chapter 11: Exceptions Handling & Chapter 12: Dynamic Data Structures

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 15 Getting Started With Java (Lab1) To Write your first program, what you need: The Java 2 Platform, Standard Edition. SDK, Software Development Kit. A text editor pico emacs vi Some Integrated Development Environment (IDE). For example, BlueJ, JBuilder, Visio Studio, etc

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 16 First Application: Hello World Three steps for develop a Java Application Create a Java source file. Compile the source file into a bytecode file. Run the program contained in the bytecode file.

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 17 First Application: Hello World

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 18 Create The Source Code Change to your home directory cd Make a subdirectory for your program mkdir CS401 Change your current directory to this directory cd CS401 Start a text editor pico HelloWorldApp.java Type in the following word class HelloWorldApp { public static void main(String[] args) { System.out.println(“Hello World!”); } } Save the file by typing Ctrl-O

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 19 Compile and Run To compile this application: javac HelloWorldApp.java To Run this application java HelloWorldApp

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 20 First Applet: Hello World Save the two files: HelloWorld.java & Hello.htm To Compile: javac HelloWorld.java To run: appletviewer Hello.htm

CS401/COE401 Summer 2005.Department of Computer Science.University of Pittsburgh 21 Topics for next lecture Reading Assignment: Chapter You don’t need to know the details but you should know what are those when I talk about it.