Java Programming (second semester)
- Revision
- Reference types in Java: creating, storing,
and comparing objects.
- Static modifier ,
2 slides to a page .
- Testing. Inheritance 6 slides to a page ,
2 slides to a page .
- Casting, Objects class, Wrapper classes... 6 slides to a page ,
2 slides to a page .
- First self-test
Answers to the first self-test
- Abstract classes and interfaces. 6 slides to a page ,
2 slides to a page .
Example.java program from the lecture (implementing
Comparable and using Collections.sort()).
- Interfaces + test + exercises.
6 slides to a page ,
2 slides to a page .
- Exceptions.
6 slides to a page ,
2 slides to a page .
- Input/Output.
6 slides to a page ,
2 slides to a page .
- Revision and exercise 2.
6 slides to a page ,
2 slides to a page .
- Third self-test (counting cartoon characters test)
Answers to the third self-test
- Threads.
6 slides to a page ,
2 slides to a page .
Counter.java
PingPongA.java
PingPongB.java
- Networking.
6 slides to a page ,
2 slides to a page .
ChatServer.java
- Dynamic arrays and linked lists. Inner classes.
6 slides to a page ,
2 slides to a page . Programs from the lecture with
a sample main() method: List1.java and
DynamicArray1.java
- Iterators. Serialisation. Thread-safe (synchronised) collections.
6 slides to a page ,
2 slides to a page .
Programs from the lecture List.java and
DynamicArray.java .
-
Test 4
Answers to test 4
- Graphical user interfaces 1: components, containers, and layout managers.
6 slides to a page ,
2 slides to a page . Programs from the lecture:
FlowExample.java
GridExample.java
BorderExample.java
ButtonExample.java using duke.gif
JSimpleGUI1.java
- Graphical user interfaces 2: responding to events.
6 slides to a page ,
2 slides to a page . Program from the lecture:
JSimpleGUI.java
- Graphics and applets.
6 slides to a page ,
2 slides to a page .
Programs:
Graphics example Example.java
Bouncing ball animation as a Swing application (using Timer) BouncingBall.java
More applet examples
- Revision for the exam.
6 slides to a page ,
2 slides to a page .
-
Test on first semester material
Answers
-
Sample question on debugging (do only the
first question of a test from 2000/2001 academic year)
Answer
This file is maintained by Natasha Alechina
Last updated June 6, 2003.