Multiple Choice
Assuming that interface Resizable is declared elsewhere, consider the following class declaration: public class InnerClassExample
{
Public static void main(String[] args)
{
Class SizeModifier implements Resizable
{
// class methods
}
__________________________ // missing statement
}
}
Which of the following declarations can be used to complete the main method?
A) Resizable something = new Resizable() ;
B) Resizable something = new SizeModifier() ;
C) Resizable something = new InnerClassExample() ;
D) SizeModifier something = new Resizable() ;
Correct Answer:

Verified
Correct Answer:
Verified
Q31: A(n) _ has an instance method addActionListener()
Q32: _ methods must be implemented when using
Q33: Consider the following code snippet: class MyListener
Q34: Which of the following statements about an
Q36: When an event occurs, the event source
Q37: Consider the following code snippet: public interface
Q38: Event listeners are often installed as _
Q39: The Timer class is found in the
Q40: The method below is designed to print
Q62: Which of the following statements about abstract