CSCE 155

Handout 19:  Exam 2 Review

 

March 30, 2005

 

Problem Solving

 


1.  Event-Driven Programming

·        Basic components of event-driven programming: event sources, listeners, handlers, and an interface that maps events to handlers.

·        Basic GUI objects

·        Types of events in Java

·        The concept of an Interface—abstract methods and implements.

 

2.  Exceptions and Assertions

·        Why use exceptions?

·        The try-catch block

·        “finally”

·        Types of exceptions including user-defined ones

·        Throwing exceptions, catching exceptions, propagating exceptions

·        Implicitly throwing exceptions, explicitly throwing exceptions, defining a new exception

 

3.  Arrays

 

4.  Search and Sorting


 

Java Classes and Packages

 

1.      JFrame

2.      JOptionPane

3. java.io.*

4.      javax.swing.*

 -- Various GUI classes, layouts, listeners