Next page | Contents page |

Exercise 2 - Squarer failure

Explain why the following commands fail. What goes wrong in our program in each case? Make a note of exactly what happens because we will refer back to it.

  1. java Squarer ten
  2. java Squarer 1000000000
  3. java Squarer
Next page | Contents page |