Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Introduction to Java - Lecture Slides - Java | CS 190, Study notes of Java Programming

Material Type: Notes; Class: Java; Subject: Computer Science; University: Drexel University; Term: Winter 2008;

Typology: Study notes

Pre 2010

Uploaded on 08/19/2009

koofers-user-bj9
koofers-user-bj9 šŸ‡ŗšŸ‡ø

5

(1)

10 documents

Partial preview of the text

Download Introduction to Java - Lecture Slides - Java | CS 190 and more Study notes Java Programming in PDF only on Docsity!

CS 190 - Java

Introduction to Java

Andy Mroczkowski

[email protected]

Department of Computer Science

Drexel University

February 4, 2008 / Lecture 3

Outline

Course Status

Course Information & Schedule

Assignments

Review

Access Control

Scope

Packages

Initialization & Cleanup

Creating Objects

Constructors

Cleanup

Re-use

Composition

Inheritance

Delegation

Related Topics

Schedule^1

Jan 7 Course Overview, Introduction to Java

Jan 14 No Class

Jan 21 No Class (University Holiday)

Jan 28 Object Oriented Concepts, Control Statements

Feb 4 Inheritance, Reuse, Abstraction, Classes, Interfaces

Feb 11 Scope, Public/Protected/Private, Java Exception Handling

Feb 18 Midterm, File I/O

Mar 3 Threading

Feb 25 Graphical User Interfaces (AWT, Swing)

Mar 10 Networking, Special Topics (Encryption, Reflection)

Mar 17 Final

1 Also subject to change

Grades

ā€¢ Assignment 0, 1, 2 are graded

ā€¢ Grade reporting?

Assignment 2 Comments

ā€¢ Obvious demos

ā€¢ Code that doesnā€™t compile

ā€¢ Style

ā€¢ Packages

Assignment 2 Comments

ā€¢ Obvious demos

ā€¢ Code that doesnā€™t compile

ā€¢ Style

ā€¢ Packages

Assignment 2 Comments

ā€¢ Obvious demos

ā€¢ Code that doesnā€™t compile

ā€¢ Style

ā€¢ Packages

Style - Class Naming

ā€¢ myGreatClass

ā€¢ Mygreatclass

ā€¢ MyGreatClass

ā€¢ mygreatclass

ā€¢ my_great_class

Style - Variable Naming

ā€¢ mySweetVariable

ā€¢ Mysweetvariable

ā€¢ MySweetVariable

ā€¢ mysweetvariable

ā€¢ my_sweet_variable

Style - Package Naming

ā€¢ myRadPackage

ā€¢ Myradpackage

ā€¢ MyRadPackage

ā€¢ myradpackage

ā€¢ my_rad_package

Style - Identation

class WhileTest {

public static void main(String[] args) {

long now = new Date().getTime();

long later = new Date().getTime() + 5000;

while ( now < later ) {

now = new Date().getTime();

Style - Identation

class WhileTest {

public static void main(String[] args) {

long now = new Date().getTime();

long later = new Date().getTime() + 5000;

while ( now < later ) {

now = new Date().getTime();

Review

Review from last lecture

Review

ā€¢ Object-Oriented concepts

ā€¢ Key Concepts

ā€¢ Inheritance

ā€¢ Polymorphism

ā€¢ Operators & Control Statements

ā€¢ Operators

ā€¢ Conditionals

ā€¢ Loops