•sorry
- foo is not my name
•
•Intentionally
generate a NullPointerException,
•see
what the Exception's toString method returns
•java.lang.NullPointerException
•
•Experiment
with the printStackTrace() method:
•BadGuessException
• at
java.lang.Throwable.<init>(Compiled Code)
• at
java.lang.Exception.<init>(Compiled Code)
• at
BadGuessException.<init>(Compiled Code)
• at Wizard.guessName(Compiled
Code)
• at Wizard.makeMischief(Compiled
Code)
• at RumpelStiltskin.main(Compiled
Code)
•
•Look
for a second command line argument,
•see
what happens if it's not there:
•java.lang.ArrayIndexOutOfBoundsException:
1
• at RumpelStiltskin.main(Compiled
Code)
•