Department of Computer Science
Computer Science II (20072)
[
4003-232-07 (RIT Calendar)
] --- [
CS II Main Page (all sections)
]
[
Java API
] --- [
Labs
] --- [
Projects
] --- [
Syllabus
] --- [
Schedule
]
[
Home
] --- [
Lecture Slides
] --- [
Assignments
] --- [
Resources
] --- [
Course Outcomes
]
Lecture Slides
Note: source code examples taken from the textbook in these slides are available from the publisher.
[
Text Web Page
]
Week 1:
Review and Inheritence
Constructor chaining example (
Faculty.java
)
Week 2:
Polymorphism, Abstract Classes, and Interfaces
Example of data hiding (masking), and binding for data and method references (
HidingDemo.java
)
Example of argument binding in overloaded methods accepting numeric (primitive) and object types (
OverloadedNumbers.java
)
Week 3:
Exceptions, Wrapper Classes, and File I/O
Week 4:
Byte Stream Files
Week 5:
Generic Types, Abstract Data Types (ADTs), and the Java Collection Framework
(partial)
Simple Generic Type Example:
GenX.java
Example uses of Set ADT implementations in the Java Collections Framework:
SetEg.java
Example lists, list iterators, and sorting:
TestArrayAndLinkedList.java
.
Map example (word counting):
CountOccurenceOfWords.java
.
Week 6:
Introduction to GUI and the Java Swing Library
Additional slides from Sean Strout and Rob Duncan:
Java GUI Programming
Week 7:
Event-Driven Programming (Overview)
(including anonymous and inner classes for implementing event handlers).
Additional slides (from Sean Strout and Rob Duncan):
Event-Driven Programming II
Action Event Example (JButtons, ActionListener)
Window Event Example (Jframe, WindowListener)
Mouse Event Example ("Scribble" program: MouseEvent, MouseListener, MouseMotionListener)
Key Event Example (KeyEvent, KeyListener)
Week 8: Threads and Synchronization
Slides (Sean Strout, Rob Duncan):
Multithreading
Week 9: Networking
Slides (Sean Strout, Rob Duncan):
Networking slides
Examples from text: MultiThreadServer.java (p. 824), Client.java (p. 820), DatagramServer.java (p. 852), DatagramClient (p. 854)
Week 10: Ethics (Intellectual Property)
Slides (Jim Heliotis):
Intellectual Property