| CIT 591 Fifth Quiz Fall 2001, Dave Matuszek |
Name: Answer Key
|
vec is a Vector containing only Strings,
and str is a String,
str into the Vector:str to the String
at location 2 in the Vector:Exception? ThrowableException represents exceptions that
do not need to be caught? RuntimeException
s = new Integer(n).toString();Comment command
use? str.equals("XYZ")
give a different result from "XYZ".equals(str)
? p.add(okButton, BorderLayout.NORTH); better
than p.add(okButton, "North"); ? (Both
are legal.) x instanceof y, what kind of operand would
you use for y?char ch
into the Vector charVec.catch clause to print out where you were when the error
occurred?TextComponent. TextArea TextField