CS 140 - Homework 1 - Due Jan 23

Name:___________________________________


Answer the following questions:

  1. Consider the representation for pictures described in Section 1.3 where each pixel in the picture is represented by three bytes (one for each color: red, blue, and green).
  2. Calculate, (or try in DrJava) the following Java calls:
  3. Declare variables with reasonable types and assign them the appropriate values for the following purposes:
  4. What does it mean to compile a program?
  5. What is a classpath?
  6. Identify which of the following are class methods and which are object methods:
  7. Relating to the previous question, how can you tell the difference between object and class methods?

© Rich Sharp (modified by Ed Harcourt)