UCLA - PIC 20A
JAVA and Internet Programming, Computation & Visualization
Final Exam Study Guide, Thu., Aug. 15, 2002, 10:30-11:20AM, MS
6229
I. Theoretical Component
- Abstract classes vs. Interfaces (differences and similarities)
- How are Java Interface objects different from classes, in general?
- What is a package, why do we need it and how do we use it?
- What are exceptions and call-stacks?
- Data structures: Stack (LIFO), queue (FIFO), linked-list.
- What is the catch-or-specify requirement in exception handling?
- What is the rationalle for throwing exceptions from one method/class to another in the call-stack framework?
- What's the proper order in catching exceptions?
- State the basic advantages of using exceptions. Can exceptions be used for non-exceptional flow of control redirection? Should they be used this way?
- What is a thread?
- What are the two ways for defining a run method for a thread. How do we decide which approach to take?
- Is the highest priority thread the one always running on the CPU?
- What are the divisions of the I/O stream classes? Which is the most common type of a stream programs use? Why?
- What is object serialization?
- What is required for a Java event handler to work properly?
II. Applications Component
- Define an interface Shape and include a couple of members of types that make sense for this interface (constants, variables?, methods).
- What is the general format for defining and implementing an interface?
Can interfaces be instantiated? Can an interface be used as a reference type
in function calls?
- Give a simple example of constructing and importing a package
- What is the general form for the exception handling mechanism in Java?
- Give some general (heuristic) examples of where using threads may be very beneficial
- Give an example of creating, starting and terminating a thread in an Applet class
- Show an example of creating a group of threads. Why is this useful?
- Write a simple file I/O stream that copies the content of one file into another
- Construct a JButton object, instantiated it and provide an action handler that prints button clicked, upon click
- Which of the following is not an event listener; ActionListener,
WindowListener, MouseListener, MouseMotionListener, IOListener, ComponentListener,
FocusListener, ListSelectionListener?
- List 10 Java Swing components frequently used as widgets added in Java GUIs
- List the basic layout managers
Last modified on
by
.
\Ivo D. Dinov, Ph.D., Departments of Statistics, Neurology &
Program in Computing, UCLA School of Medicine/