CSC148 Ramp-up Workshop (Fall 2007)

Introduction

The CSC148 Ramp Up Workshops are designed to help you get up to speed in Java (up to the level required for CSC148).

The workshops are intended for people who have not taken CSC108, but have done some object oriented programing (for example, they should know how to define a class and a subclass). However, if you have taken CSC108 and think you just need a refresher, you are also welcome to attend.

Time and Location

Each session will start in BA 1210 for a quick classroom review of concepts from CSC108, using Dr. Java for demonstration.

The sessions will then move to a CDF lab (BA 2270) in the afternoon for hands-on work, where students will be able to use Dr. Java to complete a set of lab assignments.

There are two workshop dates scheduled. Both days will cover the same material.

Schedule and Notes

Lecture (10am-12pm) Lab (1pm-5pm)
The following is a list of potential topics that we can cover. Since time is limited, we may only cover a few selected topics from this list.
  • Primitive data types
    • declaring and initializing variables
  • Defining your own type: Classes
    • class declaration, instantiation
    • components of a class (methods, variables)
    • public, private modifiers
    • method overloading
    • wrapper classes
  • Commenting and Javadoc
  • Instance vs. Static Data and Methods
  • main method
  • Java memory model (representation, stack frame, static space, heap space)
  • String class and String operations
    • == vs .equals
  • Math class and function calls
  • Loops
  • Conditional statement
  • Input/Output
    • Keyboard I/O
    • File I/O
  • Arrays
    • 1D
    • 2D
    • Memory Representation
  • Inheritance
    • abstract, extends
    • overriding, super
    • typecasting
  • Testing with JUnit
To cover the above topics, we will use parts of the following lecture notes:
The following is a list of exercises that we will work through during the lab: Solutions will be posted on September 22nd, 2007.

Useful Java Links