| CSC 8310 Java Quiz Villanova University, Spring 2001 David Matuszek |
Section 1 Name ____________________________________________ |
True or False questions -- 3 points each
Answer each question with T or F
public final void main(String args[])
method. interface declaration
are public. java.io.*; in order to use
System.out.println(). Exception is just another kind of object, with
fields and methods.Event. try statement always has at least one
catch clause.Applet is a kind of Panel.Component sends its own unique kind
of Event.
.class file.Poodle is a subclass of Dog,
you can assign a value of type Dog to a variable of type
Poodle, but only if you cast it to type Poodle.1 + 2 + "3" is
the String "123". jack and john are objects
of the same type, then (jack==john) tests whether
jack and john have equal values in all fields. run() method for every
Thread that you create.
Short answer questions -- 5 points
each
Fill in the blanks.
catch clause, you should print out debugging information.
Even if you do nothing else, you should at least call the method named ____________________
. paint
method; call ____________________ instead.