| CSC 8310 Java Quiz Villanova University, Spring 2001 David Matuszek |
Section 2 Name ____________________________________________ |
True or False questions -- 3 points each
Answer each question with T or F
main method. Object, extends some other
class. interface defines a list of functions to be
implemented. Applet class defined
in java.applet.* public
void toString(). new keyword. try statement is used to deal with Exceptions. Event is just another kind of object, with
fields and methods.Exception.Applet is a kind of Container.Poodle is a subclass of Dog,
you can assign a value of type Poodle to a variable of
type Dog, but only if you cast it to type Dog.("ABCD"=="AB"+"CD") gives
the boolean result false."cat".equals(word) is sometimes preferable
to word.equals("cat"). start() method.
Short answer questions -- 5 points
each
Fill in the blanks
String. Thread
class, you can instead implement the ____________________
interface.