CSC 142 Introduction to Java [Reading: chapters 1 & 2]

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

L1:CSC © Dr. Basheer M. Nasef Lecture #1 By Dr. Basheer M. Nasef.
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
For more Lectures and Notes Visit
Introduction to Java.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
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.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
TCU CoSc Introduction to Programming (with Java) Course Introduction.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Chapter 1 Coding Introduction.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Sadegh Aliakbary Sharif University of Technology Spring 2011.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Sadegh Aliakbary. Copyright ©2014 JAVACUP.IRJAVACUP.IR All rights reserved. Redistribution of JAVACUP contents is not prohibited if JAVACUP.
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
 2003 Prentice Hall, Inc. All rights reserved. 1 Java Training Course Dr. H.E. Dunsmore Purdue University Java – How to Program, Deitel (5 th Edition)
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
111 © 2002, Cisco Systems, Inc. All rights reserved.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
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.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
Lecture 1 Introduction. Instructor Name: Seokwoo Song Office: business 524 Phone: Office Hours: M W 4:30 – 5:30 PM or by appointment
 Programming Language  Object Oriented Programming  JAVA – An Introduction  JAVA Milestones  JAVA Features.
110-A1 Central Processing Unit Main Memory Monitor Disk Keyboard mouse What's a Computer? Network CPU: (stupid) brain of the computer can do very simple.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Java Example Presentation of a Language. Background Conception: Java began as a language for embedded processors in consumer electronics, such as VCR,
Introduction Mehdi Einali Advanced Programming in Java 1.
1 Introduction to Java. 2 * 10% Assignments/ class participation * 10% Pop Quizzes * 05% Attendance * 25% Mid Term * 50% Final Term.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Introduction to JAVA Programming
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
CIS 234: Object-Oriented Programming with Java
Chapter 1 Coding Introduction.
Object Oriented Programming in
 2001 Prentice Hall, Inc. All rights reserved.
Lecture 1b- Introduction
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Key Ideas from day 1 slides
Chapter 1 Introduction to Computers, Programs, and Java
Lecture 1: Introduction to JAVA
Computer System and Programming
Java programming lecture one
Introduction Enosis Learning.
An Overview of Java.
Chapter 1 FOUNDATIONS OF JAVA
Programming COMP104: Fundamentals and Methodology Introduction.
Introduction Enosis Learning.
Chapter 1 Coding Introduction.
Advanced Programming Fall 2017.
Computers: Hardware and Software
Advanced Programming: C# Lecture 01: Introduction
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:

CSC 142 Introduction to Java [Reading: chapters 1 & 2]

What to expect in this class Background: knowledge of basic programming in any language (VB, C, …) functions (or subs), loops, conditionals and arrays Outcome: how to program in Java (syntax, using objects, java libraries, …) Class organization: Lectures, lab practice with sample code, homework assignments, tests and quizzes class web site http://flepeint.ccfaculty.org/java142

What is a computer? (1) Programmer's viewpoint CPU (central processing unit): the "brain" of the computer. It can perform simple tasks very fast (e.g. adding…) Memory: where the microprocessor stores data (results of computations,…). Memory comes in many types (RAM, ROM, …) Input/Output devices: e.g. keyboard, screen, … They allow the user to interact with the computer. Our goal: Make the computer perform complex tasks for us. How: Write programs.

What is a computer? (2) Welcome to Java! CPU Memory Network

Programming Machine language Instead, use a high level language The CPU set of instructions: coded as a series of 0's and 1's Fast Machine dependent (two different CPU don't use the same machine language) Time consuming to write programs Instead, use a high level language Closer to plain English. Programming is easier. (this doesn't mean easy!) Machine independent Can't be understood by the CPU. A translation program is required (compiler, interpreter, …)

Programming languages Thousands of programming languages (many are just for research purposes) Historically (with many omissions!) FORTRAN (scientific) (50's) COBOL (business) (60's) PASCAL, BASIC, C (multi purposes) (70's) C++ (OOP) (80's) Java (OOP + platform independence) (90's)

Why are we learning Java? A modern language object oriented, portable, secure able to harness the power of networks A better C++? some features of C++ are overly complex (e.g. multiple inheritance) Java doesn't include any of these A good language to learn programming (the modern way: OOP, …)

A brief history Created in the 90's by Sun Microsystems (Bill Joy and James Gosling) first for cell phones and PDA (failure) explosion of the internet rescued the language (small, robust, object oriented, architecture independent, secure) free and open code distribution Now used widely on PC, cell phones, … But there are other languages, e.g. Python, etc…

The Java virtual machine Unix Windows JVM (interpreter) Source Code (.java file) Byte Code (.class file) Java Compiler

The present Java Java 11 (12 will be released in 9/2019) Many libraries Swing (user interface toolkit) Data bases (JDBC) Java security, Servlets … Software: many free products for all platforms (Unix, Solaris, Mac, Windows…) Java jdk available at oracle.com Eclipse at eclipse.org (what we will use). Other Java IDE's available.

Resources Text: “An introduction to OOP with Java" McGraw-Hill Other books Niemeyer & Knudsen: "Learning Java" O'Reilly (Good if you already know C/C++) Deitel & Deitel: "Java how to program" (lots of examples) Enormous amount of resources on the web docs.oracle.com (excellent on-line tutorials) Check www.cs.washington.edu. We will use the UW java library.