Java workshop
Mathematics and Computer Science Department
Summer 2019
Dates:
June 3 (Monday) - June 6 (Thursday),
June 10 (Monday) - June 13 (Thursday),
June 17 (Monday) - June 20 (Thursday)
Class hours:
10:00 am - 10:50 am (lecture)
10:50 am - 11:20 pm (break),
11:20 pm - 1:35 pm (lab)
Last meeting, June 20th will be an exam.
Room: CPH 320
Objective:
Upon completion, students will be able to solve clearly-presented programming problems using Java, having worked numerous examples in class. They will be quickly able to adapt to C++ as well, due to the similarity of its syntax with that of Java.
Overview of each day’s lesson (tentative--subject to change):
1. Setup (JDK and Eclipse), First programs (Hello, Welcome, Add). Primitive types, Syntax (comparison with C++): expressions using primitive types and their operations.
2. String class vs char type. Decision statements (if, if-else, switch). Control statements: Loops (for, while-do, do-while),
3. Classes I: Instance variables, methods (get and set methods, constructors); data abstraction; public, private access; class variables, methods.
4. Classes II. Overloading methods. Arrays. Basic inheritance.
5. Classes III: More Inheritance, protected access, abstract base classes.
6. Interfaces, Exception Handling.
7. GUI classes I: Components (Widgets), Event Handling, Thread basics.
8. GUI classes II: Component Subclasses.
9. File I/O
10. Networking 1—Sockets
11. Networking II---Client-Server
12. Review, Exam
Attendance and exercises completion status:
Useful Links:
- Java API documentation: http://docs.oracle.com/javase/8/docs/api/index.html