
The GeneralPath class path implements the Shape interface. You can add shapes to a GeneralPath. This is an example of which design pattern?
The Rectangle2D.contains method calls the getX, getY, getWidth, and getHeight methods instead of looking up the x, y, width, and height instance variables. This is an example of which design pattern?
Consider a class with a method
public class SomeClass
{
public void read(InputStream in) throws IOException
}
Which of the following statements is true about overriding this method in a subclass?
throws IOExceptionthrows IOException or a subclass of IOExceptionthrows IOException or a superclass of IOException
Do problem 17 from your text book with a buddy.
