previous | start | next

Self Check

  1. Suppose Java had no static methods. Then all methods of the Math class would be instance methods. How would you compute the square root of x?
  2. Harry turns in his homework assignment, a program that plays tic-tac-toe. His solution consists of a single class with many static methods. Why is this not an object-oriented solution?

previous | start | next