Test 2 Review
(Exam Date: Wednesday, 4 Apr 2001,
8:00 - 8:50 AM)
Logistics:
50 minute exam
Closed book / closed notes
No cheating / no make-up exam
Responsible for:
material in overheads
concepts discussed in class
OO concepts from all three programming assignments
Topics:
Object Oriented Paradigms
-
Encapsulation
-
Polymorphism , Dynamic Binding
-
Inheritance (notion of classes that extend within a hierarchy)
-
Interfaces (anywhere in hierarchy from which classes may implement)
-
Hierarchies, Is-a and Has-a relationships
Subtypes
-
Type and Subtypes
-
Principle of Substitutability
Binding in Java
Cloning : Deep Copy vs Shallow Copy
-
Shallow copy concept
-
Deep copy concept
-
clone() method, overriding
-
Semantic consistency of clone(), equals(), hashcode()
-
interface Cloneable
Threads
-
Thread concept
-
Thread states and life cycle
-
Thread creation in Java: extending Thread class vs implementing Runnable
interface
-
Starting a thread
Frameworks
-
I/O Framework
-
Byte Streams
-
Character Streams: Reader / Writer