Salman Marvasti Sharif University of Technology Fall 2014.

Slides:



Advertisements
Similar presentations
A Programmer's Introduction to Java - from a S/370 user (c) IDMS/SQL News
Advertisements

In Review JAVA C++ GUIs - Windows Webopedia.com.
Object Oriented Programming in Java George Mason University Fall 2011
Advanced Programming in Java Peyman Dodangeh Sharif University of Technology Fall 2013 Lecture 1: Introduction to OOP Slides adapted from Steven Roehrig.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Introduction to Java Programming, 4E
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 1 Introduction/Overview Wed. 9/6/00.
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
For more Lectures and Notes Visit
Honors 101, Fall 2006 Please do not sit in back of room! Lots of info on web page Join the mailing list Download Eclipse and start using it Read the text.
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.
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
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Introduction to Java Programming with JBuilder 4
+ 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.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Introduction to Java Kumar Harshit. Objectives ( 목적지 ) At the end of the lesson, the student should be able to: ● Describe the features of Java technology.
Sadegh Aliakbary Sharif University of Technology Spring 2011.
Sadegh Aliakbary. Copyright ©2014 JAVACUP.IRJAVACUP.IR All rights reserved. Redistribution of JAVACUP contents is not prohibited if JAVACUP.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
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.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Object-Oriented Programming and Problem Solving Dr. Ramzi Saifan.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
JAVA Java is a programming language and computing platform first released by Sun Microsystems in It was first developed by James Gosling at Sun Microsystems,
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.
OOP (Java): Prelim/ OOP (using Java) Objective – –to give some background on the course Semester 2, Who we are: Andrew Davison.
Introduction to Java Programming with Forte Y. Daniel Liang.
Objected Oriented Programming & Design JAVA Shishir Gupta (704) (704)
Introduction To JAVA By Ihtesham Ul Haq. Course Objectives Upon completing the course, you will understand Upon completing the course, you will understand.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
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
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005.
Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme.
1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.
Salman Marvasti Sharif University of Technology Winter 2015.
Introduction Mehdi Einali Advanced Programming in Java 1.
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
Introduction to Programming 1 1 2Introduction to Java.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Spring 2008 Mark Fontenot CSE 1341 – Honors Principles of Computer Science I Note Set 1 1.
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.
Computer Science I ISMAIL ABUMUHFOUZ | CS 180. CS 180 Description BRIEF SUMMARY: This course covers a study of the algorithmic approach and the object.
Introduction to Java Programming, 4E Y. Daniel Liang.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Chapter 1 Coding Introduction.
Object Oriented Programming in
Introduction Enosis Learning.
Introduction Enosis Learning.
Advanced Programming Fall 2017.
Advanced Programming Behnam Hatami Fall 2017.
Advanced Programming Behnam Hatami Fall 2017.
(Computer fundamental Lab)
Java History, Editions, Version Features
By Rajanikanth B Overview Of Java By Rajanikanth B
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
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:

Salman Marvasti Sharif University of Technology Fall 2014

Agenda Introduction to Course Administrative Details Syllabus References Evaluation Policy Fall 2014Sharif University of Technology2

Expected Background “A one-semester college course in programming.” I assume you can write a program in some language, understand variables, control structures, functions/subroutines. If in doubt, let’s talk.

Evaluation Policy Fall 2014Sharif University of Technology4 How many?Total Grade Quiz4 4 Midterm Exam14 Final Exam15 Assignment33 Project24+ Class Activity-+

Administrative Details (cont.) Our teaching assistant are

Administrative Details (cont.) 15 weeks Two 80-minute lectures per week, a break in between the lectures. Course notes in PowerPoint. Course notes available (usually) Friday before class. Send course questions to Blackboard’s Discussion Group, personal questions to me.

Administrative Details (cont.) Homework usually monthly. Printing slides? Three to a page, at least. Save a tree! Remove the PowerPoint background before printing. Save toner!

Administrative Details (cont.) Attendance is not required, but… …you are responsible for everything said in class. I encourage you to ask questions in class. Don’t guess, ask a question!

My Policy on Cheating Cheating means “submitting, without proper attribution, any computer code that is directly traceable to the computer code written by another person.” I give students a failing course grade for any cheating. This doesn’t help your job prospects.

My Policy on Cheating(cont.) You may discuss homework problems with classmates, after you have made a serious effort in trying the homework on your own. You can use ideas from the literature (with proper citation). You can use anything from the textbook/notes. The code you submit must be written completely by you.

Course Etiquette Etiquette is “conduct in polite society” No cell phones No random comings and goings If you are sleepy, go home If you want to read or surf the Web, please do it elsewhere

This Course Covers: Object Oriented Concepts Fundamentals of Java programming language Some Programming Skills Software Quality Test Refactoring Fall 2014Sharif University of Technology12

Object Oriented Programming Problem Space the place where the problem exists such as a business Solution Space the place where you’re implementing that solution such as a computer The effort required to perform this mapping. E.g. think about a library, or a phonebook program Fall 2014Sharif University of Technology13

Object Oriented Approach OOP lets the programmer represent problem space elements The elements in the problem space and their representations in the solution space are referred to as “objects” Fall 2014Sharif University of Technology14

OOP The program is allowed to adapt itself to the lingo of the problem by adding new types of objects when you read the code, you’re reading words that also express the problem. Fall 2014Sharif University of Technology15

OOP (2) OOP allows you to describe the problem in terms of the problem Rather than in terms of the computer Objects in your code are similar to real objects Recall the sample programs: phonebook and library Fall 2014Sharif University of Technology16

Object Oriented Languages Smalltalk The first successful object-oriented language One of the languages upon which Java is based Java C++ C# Fall 2014Sharif University of Technology17

Java History Java was created in 1991 by James Gosling in Sun Microsystems Initially called Oak in honor of the tree outside Gosling's window Its name was changed to Java becaused of Java Island in Indonesia because there was already a language called Oak. Sun Microsystems released the first public implementation as Java 1.0 in 1995 Java syntax is similar to C and C++. Fall 2014Sharif University of Technology18

Java Motivation The need for platform independent language To be embedded in various consumer electronic products like toasters and refrigerators Platform independent?! Hardware Operating System Fall 2014Sharif University of Technology19

Java Motivation (2) At the same time, the World Wide Web and the Internet were gaining popularity. Java could be used for internet programming. Why? Platform independence Creation of Applets Fall 2014Sharif University of Technology20

The Java technology is: A programming language Java can create all kinds of applications A development environment A compiler (javac) An interpreter (java) A documentation generator (javadoc) … Compare it to C++ Fall 2014Sharif University of Technology21

High-Level Languages Fall 2014Sharif University of Technology22

Java Virtual Machine Fall 2014Sharif University of Technology23

Compile and Execution Stages Compare to C++ and Assembly.NET Framework Fall 2014Sharif University of Technology24

Java is Popular Some reports on programming languages popularity According to Job advertisements Book sales Finding code on the web … Fall 2014Sharif University of Technology25

Fall 2014Sharif University of Technology26 updated in 2010

Fall 2014Sharif University of Technology27 (2012)

Characteristics of Java Java is simple Java is object-oriented Java is architecture-neutral Java is portable Java is interpreted Java is multithreaded Java is secure Java is robust Fall 2014Sharif University of Technology28

First Example Create a file named First.java Java class files have.java extension Note to naming convention Copy this lines to the file Note: File name and class name should be the same. Fall 2011Sharif University of Technology29

Oracle, Sun, … Fall 2014Sharif University of Technology30

Further Reading Read Java page on Wikipedia Google this terms and phrases: Fall 2014Sharif University of Technology31 Java Java Mobile JVM Byte code Java Sun Java and C++ Java and C#

Assignment # 0 Download and install JDK JDK 7 Write a program that prints your name on the console Compile and run the program Fall 2014Sharif University of Technology32

Course Outline Let’s See The Syllabi.

Topics Introduction to java language Java syntax, operators, conditions, loops, … Strings Arrays Object Oriented Programming Interface Inheritance Polymorphism Software Quality Refactoring Test Advanced Java Programming Exception Handling Generics Collections GUI Threads Files and Streams Networking Reflection Fall 2014Sharif University of Technology34

References Java How to Program Deitel & Deitel 9 th Edition (6 th + editions are ok) Thinking in Java Bruce Eckel Fourth Edition Fall 2014Sharif University of Technology35

Course Homepage Lecture notes and reference books are uploaded here Fall 2014Sharif University of Technology36

Fall 2014Sharif University of Technology37