Download presentation
Presentation is loading. Please wait.
Published byBarbra Marsh Modified over 9 years ago
1
Salman Marvasti Sharif University of Technology Fall 2014
2
Agenda Introduction to Course Administrative Details Syllabus References Evaluation Policy Fall 2014Sharif University of Technology2
3
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.
4
Evaluation Policy Fall 2014Sharif University of Technology4 How many?Total Grade Quiz4 4 Midterm Exam14 Final Exam15 Assignment33 Project24+ Class Activity-+
5
Administrative Details (cont.) Our teaching assistant are sabbaghian.amin@gmail.com d.familkhalili@gmail.com
6
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.
7
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!
8
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!
9
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.
10
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.
11
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 email or surf the Web, please do it elsewhere
12
This Course Covers: Object Oriented Concepts Fundamentals of Java programming language Some Programming Skills Software Quality Test Refactoring Fall 2014Sharif University of Technology12
13
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
14
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
15
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
16
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
17
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
18
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
19
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
20
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
21
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
22
High-Level Languages Fall 2014Sharif University of Technology22
23
Java Virtual Machine Fall 2014Sharif University of Technology23
24
Compile and Execution Stages Compare to C++ and Assembly.NET Framework Fall 2014Sharif University of Technology24
25
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
26
Fall 2014Sharif University of Technology26 http://www.langpop.com updated in 2010
27
Fall 2014Sharif University of Technology27 http://www.tiobe.com/index.php/content/paperinfo/tpci/index.htmlhttp://www.tiobe.com/index.php/content/paperinfo/tpci/index.html (2012)
28
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
29
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
30
Oracle, Sun, … Fall 2014Sharif University of Technology30
31
Further Reading Read Java page on Wikipedia http://en.wikipedia.org/wiki/Java_(programming_language) Google this terms and phrases: Fall 2014Sharif University of Technology31 Java Java Mobile JVM Byte code Java Sun Java and C++ Java and C#
32
Assignment # 0 Download and install JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html JDK 7 Write a program that prints your name on the console Compile and run the program Fall 2014Sharif University of Technology32
33
Course Outline Let’s See The Syllabi.
34
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
35
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
36
Course Homepage https://ce.sharif.edu/courses Lecture notes and reference books are uploaded here Fall 2014Sharif University of Technology36
37
Fall 2014Sharif University of Technology37
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.